- Home /
problem with XmlDocument
i use iOS license, when i run in my mac, everything is ok, but when i build and play in my Iphone, i got problem with those code:
StringReader strReader = new StringReader(www.text);
xmldocument = new XmlDocument();
xmldocument.Load(strReader);
and errors like that : XmlException: Unexpected declaration markup was found. Line 1, position 3. at Mono.Xml2.XmlTextReader.ReadDeclaration () [0x00000] in :0 at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in :0 at Mono.Xml2.XmlTextReader.Read () [0x00000] in :0 at System.Xml.XmlTextReader.Read () [0x00000] in :0 at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] in :0 at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] in :0 at Mono.Xml.DTDValidatingReader.Read () [0x00000] in :0 at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] in :0 at System.Xml.XmlValidatingReader.Read () [0x00000] in :0 at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in :0 at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in :0 at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in :0 at System.Xml.XmlDocument.Load (System.IO.TextReader txtReader) [0x00000] in :0 at SceneTopControl+c__Iterator11.MoveNext () [0x00000] in :0
Please help me!
Debug.Log the xml in www.text and make sure it still looks right. That's certainly complaining that the markup isn't correct.
Your answer
Follow this Question
Related Questions
Do you need a license for ios game development? 1 Answer
How do I send an email on IOS using Application.OpenURL with more than one line of body text? 4 Answers
iOS performance: GUItext? want to use text string, but how to instantiate and edit it runtime? 0 Answers
Unity Free license for ios game distribution 1 Answer
Reading/Loading xml files on iPad 2 0 Answers