convert a string to xml vb6 download for windows 10 enterprise 64bit

Convert a string to xml vb6

Hi. I am brand new to the world of XML. I need to recreate a text file that used to be created by an outside app. Now we will be given a XML file that contains alot of data including the data I need to put into the text file. So I probably won't need all the fields given in the XML. Can I use Visual Basic to convert XML data to a text file? Do you have any examples?

If you read up on your System.XML Namespace:

Your XMLDocument is going to be composed of Nodes. An individual Node can be a Parent Node or a Child Node or both Parent and Child:

<ParentNode (topmost level is usually referred to as Root)>

At that point you should design a class for working with your specific format for CSV, and at that point it's a fairly simple matter of getting data out of XML Nodes and plugging it into CSV ordinal positions.

It never hurts to try. In a worst case scenario, you'll learn from it.

  • Marked as answer by Liliane Teng Monday, July 05, 2010 6:56 AM

Thanks for your post.

Check the following link. Hope you could learn something from it.

(XML To Text in VB .NET)

Please mark the replies as answers if they help and unmark them if they provide no help. Thanks

  • Marked as answer by Liliane Teng Monday, July 05, 2010 6:56 AM

All replies

Can't write an example of converting a specific XML format to a specific text format without specific examples of the source XML and target Text formats.

Can tell you that any XML you write to disk is written in plain text - you can open an XML Document in Notepad and view it.

Apart from that, you need to read up on the System.XML namespace.

It never hurts to try. In a worst case scenario, you'll learn from it.

Thanks for your speedy reply.

I did come across a XMLToText fucntion. Have you used this?

If you read up on your System.XML Namespace:

Your XMLDocument is going to be composed of Nodes. An individual Node can be a Parent Node or a Child Node or both Parent and Child:

<ParentNode (topmost level is usually referred to as Root)>

At that point you should design a class for working with your specific format for CSV, and at that point it's a fairly simple matter of getting data out of XML Nodes and plugging it into CSV ordinal positions.

It never hurts to try. In a worst case scenario, you'll learn from it.

  • Marked as answer by Liliane Teng Monday, July 05, 2010 6:56 AM

Thanks for your post.

Check the following link. Hope you could learn something from it.

(XML To Text in VB .NET)

Please mark the replies as answers if they help and unmark them if they provide no help. Thanks

  • Marked as answer by Liliane Teng Monday, July 05, 2010 6:56 AM

Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.