Skip to main content
Inspiring
January 6, 2012
Question

Help Creating Complex XML document

  • January 6, 2012
  • 1 reply
  • 620 views

How do I create a complex xml with <cfxml>

The Query has vehiclebrand, and each vehiclebrand has other models of vehicles within the brand and each has its own depended attributes.

E.G. something in the below that drills down to the details. I need to have this created in an xml and also create a webservice for it.

<vehiclebrand>

<types>    

     <audi>

     <models>

      <a7>

           <powerstearing>

              etc.................

           </powerstearing>

           <year>

           <year>

      </a7>

      </models>

     </audi>

</types>

</vehiclebrand>
    This topic has been closed for replies.

    1 reply

    Inspiring
    January 6, 2012

    Do something like this:

    <cfxml>

    <types>

    <cfoutput>

    more data

    closing tags