How can I create an xml file in my code using vb.net?

How can I create a new xml file every time I press the button?

Is there a way to do like you would do it if it where a text file.

3 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    If you want you could actually just use a normal StringWriter object in the System.IO namepace. The other option is to use the XmlWriter class in the System.Xml namespace. It has methods to write the beginning tag for an element, put an attribute in it etc. Very easy to use here is the MSDN reference:

    http://msdn2.microsoft.com/en-us/library/system.xm...

    • Login to reply the answers
  • borth
    Lv 4
    3 years ago

    why? it can not. once you're making an excel report Excel.exe makes a particular XML-report to layout your xls report and exhibits it in excel. yet changing excel to XML is opt to transform mp3 music to html report. i do no longer think of you may.

    • Login to reply the answers
  • cabby
    Lv 4
    1 decade ago

    try these sites maybe they can help you

    www.programmersheaven.com/2/dotnet-faq-XML

    www.a1vbcode.com/code.asp?type=xml

    www.devcity.net/Data-Programming/XML.aspx

    • Login to reply the answers
Still have questions? Get your answers by asking now.