Skip to main content
Fabiano Magno Pechibella
Inspiring
June 27, 2014
Answered

How to insert data into XML file?

  • June 27, 2014
  • 1 reply
  • 845 views

Hi Guys,

How to insert information into a XML file. I explain to you, I have a CFM file with some questions to user

When the user submit this form the information inside of form are send to a XML file.

How can insert this information inside of the XML file?

When i dont have a DB?

thanks

Kind regards

Fabiano Magno Pechibella

    This topic has been closed for replies.
    Correct answer CutterBl

    You must

    1. Read in the XML file
    2. Parse document into an XML object (just a big struct)
    3. Insert your XML into the object where you need it
    4. rewrite the XML file with your now included data

    You can Google "ColdFusion working with XML" and find hundred of articles to assist you. Here's a beginning tutorial to help you get started:

    Coldfusion Intermediate Tutorials - Working with XML

    1 reply

    CutterBlCorrect answer
    Inspiring
    June 27, 2014

    You must

    1. Read in the XML file
    2. Parse document into an XML object (just a big struct)
    3. Insert your XML into the object where you need it
    4. rewrite the XML file with your now included data

    You can Google "ColdFusion working with XML" and find hundred of articles to assist you. Here's a beginning tutorial to help you get started:

    Coldfusion Intermediate Tutorials - Working with XML

    Fabiano Magno Pechibella
    Inspiring
    June 27, 2014

    Tks CutterBl,

    Hugs from Brazil.

    Fabiano Magno Pechibella