xml and xsd extraction problem

  • Thread starter Thread starter SKG
  • Start date Start date
S

SKG

i generated an c# class using xsd.exe from an xsd file.

I have a property as
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSche
maForm.Unqualified)]
public bool bOwner;

when i tried to load the class from an xml data file, i got exeception
"input string was not in correct format."
When i removed the Form=System.Xml.Schema.XmlSchemaForm.Unqualified
attribute everything was fine.
can any one explain me why.? Is this a fix or i may loose information.

what does this mean Form=System.Xml.Schema.XmlSchemaForm.Unqualified?

thanks!!!
 
Hi
XmlchemaForm.Unqualified means that your attribute or element is not
required to be qualified with the namespace prefix. but the thing is that
unqualified is the default so it seems to me like you don't need to have
this line unless you specified to use qualifed XmlschemaFrom some where
before that in your code.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top