Generate an XML file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • I Hate My Computer
    New Member
    • Mar 2007
    • 44

    Generate an XML file

    Hi,
    I am working in VB 2005 express and I want to make an app were that has the user enter data into text boxes then the user clicks create and the XML file is saved to a user defined location. So far I have made the text boxes and layout. I also made variables for the text so when it is changed the variable = the text that was entered. I have found the XmlReader, XmlTextReader, XmlValidatingRe ader, XmlNodeReader, XmlWriter, XmlTextWriter but I do not know how to use them. I would also like to be able to open the XML file and load the pieces of data into their corresponding text boxes.

    Thanks
  • GTARDIO
    New Member
    • Jun 2007
    • 2

    #2
    Originally posted by I Hate My Computer
    Hi,
    I am working in VB 2005 express and I want to make an app were that has the user enter data into text boxes then the user clicks create and the XML file is saved to a user defined location. So far I have made the text boxes and layout. I also made variables for the text so when it is changed the variable = the text that was entered. I have found the XmlReader, XmlTextReader, XmlValidatingRe ader, XmlNodeReader, XmlWriter, XmlTextWriter but I do not know how to use them. I would also like to be able to open the XML file and load the pieces of data into their corresponding text boxes.

    Thanks
    Hello,

    I use vb 6.0 to create an xml file. I use the microsoft XML V.5.0 reference.

    After I create nodes, attributes etc. I use lDOMDoc.save "c:\temp\exampl e.xml" and the xml file is saved in this path.

    Everything is Ok when this file is opened with the internet explorer. But if opened as a text file, it is just one long line of text. Is there a way to
    format this file to be shown in a cascade format. ?

    Thanks,

    Comment

    Working...