Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
How to read all xml elements and attributes using xpath or xml DOM
Posted
Comments
Sergey Alexandrovich Kryukov 13-Feb-14 9:47am    
And why not XmlReader? And what's the problem? Just read it all.
—SA
Pheonyx 13-Feb-14 10:03am    
What have you tried?

using System.Xml.Linq;

XDocument mydocument = XDocument.Load(@"../../sample.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