How would I insert information into an existing xml document. I need to keep the old info plus add new info in the xml doc. How would I go about this?

    Originally posted by jigajigajason
    How would I insert information into an existing xml document. I need to keep the old info plus add new info in the xml doc. How would I go about this?

    Anyone know how to do this?

      Firs tyou'd have to parse teh entire XML document, replace what you wanted to, then write it back to an XML document.

      www.php.net

      Go read the manual about XML parsing

        Ouch, it sounds like using a database is really a better idea for this then. I can always pull the data and put it into an xml page if I need it in that form later.

          Write a Reply...