The XML export module allows users to export a node and its fields to XML and apply XSL transformations. This is useful if you need to generate some PDF documents out of your content. This module provides 3 basic functionalities:

  1. Export of nodes into a basic and comprehensible XML format
  2. Apply XSLT transformations to the generated export
  3. Generate PDFs or RTFs using the FOP library

The XML export module supports exporting nodes and users as well as node fields of type "number_integer", "text" and "date". It also supports export of references to other node, either using the "node_reference" field type or the "viewfield" field type if those modules are enabled.

Here is an example of the exported XML.

<export>
  <concert author="1" id="102167">
    <title><![CDATA[ Jonathan Example - Grande Scène (Tue 02 12:00) ]]></title>
    <body><![CDATA[ ]]></body>
    <field_date>
      <value from="2014-02-04T12:00:00" lang="und" to="2014-02-04T23:00:00"/>
    </field_date>
    <field_scene>
      <ref id="9" lang="und"/>
    </field_scene>
    <field_limit_overall>
      <value lang="und">180</value>
    </field_limit_overall>
    <field_artist_concert>
      <ref id="26505" lang="und"/>
    </field_artist_concert>
    <field_songs>
      <ref id="104896" lang="und"/>
    </field_songs>
    <field_right_requests>
      <ref id="104679" lang="und"/>
    </field_right_requests>
    <field_streaming_requests>
      <ref id="104786" lang="und"/>
    </field_streaming_requests>
    <field_web_songs>
      <ref id="104897" lang="und"/>
      <ref id="104898" lang="und"/>
    </field_web_songs>
  </concert>
  <user id="1" name="admin"/>
  <song author="53" id="104896">
    <title><![CDATA[ Test ]]></title>
    <body><![CDATA[ ]]></body>
    <field_name>
      <value lang="und"><![CDATA[ Test ]]></value>
    </field_name>
    <field_concert>
      <ref id="102167" lang="und"/>
    </field_concert>
  </song>
  <right_request author="53" id="104679">
    <title><![CDATA[ Request: Test for Jonathan Example ]]></title>
    <body><![CDATA[ ]]></body>
    <field_media>
      <ref id="104572" lang="und"/>
    </field_media>
    <field_concert>
      <ref id="102167" lang="und"/>
    </field_concert>
  </right_request>
  <streaming_request author="53" id="104786">
    <title><![CDATA[ Streaming Request: Test for Jonathan Example ]]></title>
    <body><![CDATA[ ]]></body>
    <field_media>
      <ref id="104572" lang="und"/>
    </field_media>
    <field_concert>
      <ref id="102167" lang="und"/>
    </field_concert>
  </streaming_request>
  <song author="53" id="104897">
    <title><![CDATA[ Song ]]></title>
    <body><![CDATA[ ]]></body>
    <field_name>
      <value lang="und"><![CDATA[ Song ]]></value>
    </field_name>
    <field_concert>
      <ref id="102167" lang="und"/>
    </field_concert>
  </song>
  <song author="53" id="104898">
    <title><![CDATA[ Here ]]></title>
    <body><![CDATA[ ]]></body>
    <field_name>
      <value lang="und"><![CDATA[ Here ]]></value>
    </field_name>
    <field_concert>
      <ref id="102167" lang="und"/>
    </field_concert>
  </song>
  <scene author="1" id="9">
    <title><![CDATA[ Grande Scène ]]></title>
    <body><![CDATA[ ]]></body>
    <field_name>
      <value lang="und"><![CDATA[ Grande Scène ]]></value>
    </field_name>
  </scene>
  <artist author="746" id="26505">
    <title><![CDATA[ Jonathan Wilson ]]></title>
    <body><![CDATA[ ]]></body>
    <field_name>
      <value lang="und"><![CDATA[ Jonathan Wilson ]]></value>
    </field_name>
    <field_record_company>
      <ref id="94274" lang="und"/>
    </field_record_company>
    <field_interview_requests/>
  </artist>
  <user id="53" name="sdp"/>
  <user id="746" name="Service de Presse MD"/>
  <media author="53" id="104572">
    <title><![CDATA[ Test ]]></title>
    <body><![CDATA[ ]]></body>
    <field_name>
      <value lang="und"><![CDATA[ Test ]]></value>
    </field_name>
    <field_accounts/>
  </media>
  <record_company author="746" id="94274">
    <title><![CDATA[ Service de Presse MD ]]></title>
    <body><![CDATA[ ]]></body>
    <field_name>
      <value lang="und"><![CDATA[ Service de Presse MD ]]></value>
    </field_name>
  </record_company>
</export>

Project information

Releases