Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to read and update an XML file where there is no root node.
Posted

Read the file as a text file, and use XElement.Parse() to parse the text. Put the code into a try/catch block just in case you end up parsing something that isn't identifiable as XML.
 
Share this answer
 
I can understand but The first Rule of XML is
It should have one and only one Root node,

How can you categories such as a XML ?
 
Share this answer
 
With Out The Root Node How can u say that the file is XML.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900