function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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