-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: PoorviJain
Message 1 in Discussion

Hi all,
i have got a problem with xmlserialzer..
i have a class which has structure something as

class class3
{
public int i;
}

class class2
{
public class3[] cls3arr;
}
class class1
{
public bool bool1;
public Class2 cls2;
}

now i have to xml serialize a object of class1.. what i am trying to do is
Class1 cls1 = new class1();
// here i am setting values..

XmlAttributes attrs=new XmlAttributes();

attrs.XmlElements.Add(new XmlElementAttribute("Bool1",typeof(bool1)));
attrs.XmlElements.Add(new XmlElementAttribute("Class2",typeof(Class2)));
attrs.XmlElements.Add(new XmlElementAttribute("Class3",typeof(Class3)));

XmlAttributeOverrides attrOver=new XmlAttributeOverrides();
     //add to the attributes collection
attrOver.Add(typeof(Class1),"Class1",attrs);

XmlSerializer xmlserializer = new
XmlSerializer(typeof(Class1),attrOver); // this is the line where i am
getting error.

TextWriter tr = new StreamWriter("Class1.xml");

xmlserializer.Serialize(tr,cls1);
tr.Close();

the error i am getting is ...

File or assembly name grom6lkx.dll, or one of its dependencies, was not found.

Exception Details: System.IO.FileNotFoundException: File or assembly
name grom6lkx.dll, or one of its dependencies, was not found.

and the WORST PART IS THE DLL NAME IS COMING FROM SOME JUNK.. ON EVERY
REFRESH OF THE PAGE THE DLL NAME IS GETTING CHANGED. AND ALL OF THEM
ARE JUNK VALUES..

Please help me out in this case.. tell me where i am going wrong...

TIA
Poorvi Jain

Everythig that your Mind Concieve and your Heart Believe, You can Achieve


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to