C# xml serializer - Unable to generate a temporary class -


I am trying to sort an XML in a class as follows:

 < Code> XmlSerializer Ser = New XmlSerializer (typef (PSW5ns.PSW5)); StringRedder StringRedder; StringReader = new string reader (response_xml); XmlTextReader xmlReader; XmlReader = New XmlTextReader (stringReader); PSW5ns.PSW5 OBG; Obj = (PSW5ns.PSW5) ser.Deserialize (xmlReader); XmlReader.Close (); StringReader.Close ();  

Class PSW5 is automatically generated by xsd.exe by a PSW5.xsd file given to me. I have done this for other classes too and it works. I now get the following error (during runtime):

  {"Unable to generate temporary class (result = 1). \ R \ n Abuse CS0030: type 'PSW5ns.TAX_INF [] Can not be changed 'PSW5ns.TAX_INF' \ r \ nTerror CS0029: 'PSW5ns.TAX_INF' to 'PSW5ns.TAX_INF []' \ r \ n "}  

Can not be mutually interpreted as it works the same way for other classes We would appreciate any suggestions. Thanks to these advances, Giorgos

It seems that on the related topics SO obviously you can manually output files By editing it you can solve it


Comments