I would recommend you instead try using the XDocument class and Linq for this. Dim reader As XmlNodeReader = New XmlNodeReader(document)Įxample sample of the XML which shows the 3 different types of tags: If I haven't provided enough information, please let me know. Here is (part of) my code which shows the read and write function. Ive tried a if loop for endEntity among other things but none seemed to work. How do I get the correct logic to solve this, as some XML lines are in the form and others are in the form Then a select case with xmlNodeType.Element or xmlNodeType.EndElement ![]() I am using an 'xmlNodeReader' to read the document by getting the name and value of each read. ![]() I am able to read the XML successfully and print it out, but i am having problems getting the correct with then start and end tags of each element/attribute. ![]() I have an XML file that i am trying to read and rewrite (for later manipulation) to a new text file using vb.net.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |