EDN Admin
Well-known member
I am trying to load an XML at xml document and it gives the errorata at the root level is invalid. Line 1, position 1.
string xmlData = "C:\Users\Trial.xml";<br/>
XmlDocument xd = new XmlDocument();<br/>
xd.LoadXml(xmlData);
The xml is well formed.
DO I need to add any namespage etc to the xml?
This is the structure of my XML:
<ns0:fullRecord xmlns:ns0=" http://env.com/R1I2 http://env.com/R1I2 <br/>
<PersonInfo><br/>
<PersonID>99</PersonID><br/>
<ID>5000042</ID><br/>
<AliasID>173</AliasID><br/>
<FullName>JACKSON,MICHAEL</FullName> <br/>
<LName>JACKSON</LName> <br/>
<FName>MICHAEL</FName> <br/>
<MName>SMITH</MName> <br/>
</PersonInfo><br/>
</ns0:fullRecord>
<br/>
<br/>
<br/>
View the full article
string xmlData = "C:\Users\Trial.xml";<br/>
XmlDocument xd = new XmlDocument();<br/>
xd.LoadXml(xmlData);
The xml is well formed.
DO I need to add any namespage etc to the xml?
This is the structure of my XML:
<ns0:fullRecord xmlns:ns0=" http://env.com/R1I2 http://env.com/R1I2 <br/>
<PersonInfo><br/>
<PersonID>99</PersonID><br/>
<ID>5000042</ID><br/>
<AliasID>173</AliasID><br/>
<FullName>JACKSON,MICHAEL</FullName> <br/>
<LName>JACKSON</LName> <br/>
<FName>MICHAEL</FName> <br/>
<MName>SMITH</MName> <br/>
</PersonInfo><br/>
</ns0:fullRecord>
<br/>
<br/>
<br/>
View the full article