4 Replies Latest reply on Aug 7, 2009 9:31 AM by Günter Schenk

    XML export root node attriubute?

    okkarne Level 1

      Hi

      I need to use XML export extension to generate XML to something like this:

       

      <photos path="images/">

      <photo id="1" name="Photo 1" blabla ="" url="1.jpg">This is the optional description for photo 1</photo>

      <photo id="2" name="Photo 2" blabla ="" url="2.jpg">This is the optional description for photo 2</photo>

      <photo id="3" name="Photo 3" blabla ="" url="3.jpg">This is the optional description for photo 3</photo>

      <photo id="4" name="Photo 4" blabla ="" url="4.jpg">This is the optional description for photo 4</photo>

      <photo id="5" name="Photo 5" blabla ="" url="5.jpg">This is the optional description for photo 5</photo>

      </photos>

       

      The problem is the root nodes path="images/"

       

      Is there a way to edit the XMLExport.class.php to do that?

       

      I can in DW edit the $xmlExportObj->setRootNode('photos'); to $xmlExportObj->setRootNode('photos path="images/"');

       

      But that gives an error because the end node looks like </photos path="images/">

       

      Hopefully there is an easy fix for this

       

      Regards

      olle