Read attribute of XML using LINQ or XPATH
-
28. února 2012 20:14
Hello,
My XML is pretty comples and has attributes assigned to almost all elements of the xml.
I want to be able to read the attributes of the elements.
I am thinking using LINQ to XML will be a good approach, but need help/samples on that.
Any sample using XPATH will also work.
- Upravený RachanaD 28. února 2012 23:04
Všechny reakce
-
29. února 2012 1:06
What about System.Text.XmlReader()? How is this related to WCF?
-
29. února 2012 10:37
You can use the following to read an Xml and then use Linq to Xml
1. XmlDocument
2. XDocument
3. Reading Xml data using XmlDocument And XPathDocument
4. Example on Parsing Xml using XmlDocument and XDocument
Rajesh S V
- Navržen jako odpověď Anup Hosur 2. března 2012 11:49
- Označen jako odpověď Yi-Lun LuoModerator 6. března 2012 9:17