2 Replies Latest reply on Nov 19, 2007 1:32 PM by evsPeart

    Create XML File

    evsPeart
      Hi,

      How I can create a XML File like this example:

      <?xml version="1.0" encoding="UTF-8"?>
      <person>
      <firstName>John</firstName>
      <lastName>Doe</lastName>
      </person>

      But I need to create this XML file in the application with severals values, so I need to create the file, open the file, read and write in the XML file, but the most important to me is create the XML file.

      Regards,
        • 1. Re: Create XML File
          Level 7
          You need a root node, so you might want to use <people> and </people around
          the entire structure. Then you can copy the structure of the person node as
          many times as you need it and change the information to represent different
          people.


          --
          Nancy Gill
          Adobe Community Expert
          Author: Dreamweaver 8 e-book for the DMX Zone
          Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
          Technical Editor: Dreamweaver CS3: The Missing Manual,
          DMX 2004: The Complete Reference, DMX 2004: A Beginner's Guide
          Mastering Macromedia Contribute
          Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

          "evsPeart" <webforumsuser@macromedia.com> wrote in message
          news:fhl407$r3s$1@forums.macromedia.com...
          > Hi,
          >
          > How I can create a XML File like this example:
          >
          > <?xml version="1.0" encoding="UTF-8"?>
          > <person>
          > <firstName>John</firstName>
          > <lastName>Doe</lastName>
          > </person>
          >
          > But I need to create this XML file in the application with severals
          > values, so
          > I need to create the file, open the file, read and write in the XML file,
          > but
          > the most important to me is create the XML file.
          >
          > Regards,
          >
          >


          • 2. Re: Create XML File
            evsPeart Level 1
            Hi,

            But how I can add nodes to the XML Document, that is my problem, I don't know how to create a XML Document with the nodes, child and elements....?

            Regards,