+ Start a Discussion
SahilSFSahilSF 

XML Parser Error

Hi All,

 

I am getting this exception while parsing an xml.

 

System.XmlException: Invalid XML: null

I am using XmlStreamReader for this and the major problem is this issue is not consistent.

XmlStreamReader reader = new XmlStreamReader(str); //where str is a String which contains the complete xml.

 

One thing i have noticed I get this exception when the xml is big.

 

Has anyone else faced this type of issue before.

 

Thanks.

System.XmlException: Invalid XML: null