1 Reply Latest reply on Aug 23, 2006 2:31 PM by Stressed_Simon

    Coldfusion XML Content Type

    stuart1231
      Hi there,

      I am trying to learn simple Ajax, and have an application which reads an xml document to retrive questions and answers.

      It works fine with a normal xml file, e.g:

      <?xml version="1.0" encoding="iso-8859-1"?>
      <questions>
      <q>Question1</q>
      <a>Answer1</a>
      <q>Question2</q>
      <a>Answer2</a>
      <q>Question3</q>
      <a>Answer3</a>
      </questions>

      works perfectly, but I want the file to be dynamic, I have found that with php you can use this:

      <?php header("Content-type: text/xml");>

      How can I perform this using ColdFusion?