How do I return all elements from a xml doc?

前端 未结 1 1713
旧时难觅i
旧时难觅i 2020-12-12 02:34

From my xml document, I want to display all ns1:Statute nodes. My vb code is only displaying one node and not all 3. How do I display all 3

相关标签:
1条回答
  • 2020-12-12 03:07

    I suggest you use the XmlSerializer it is way more simple if you want to get all the data from the xml file. You will have to create a class to deserialize the data in though. To create the class Creating XML schema and auto-generate the serializable class out of it using Visual Studio 2010. To use the XmlSerializer https://msdn.microsoft.com/fr-fr/library/system.xml.serialization.xmlserializer(v=vs.110).aspx.

    0 讨论(0)
提交回复
热议问题