Contents / Importing/exporting menu structure in XML format

The professional edition of DHTML Menu Studio allows exporting/importing the menu structure in XML format (this also allows to import/export to SiteXpert). This option is available in the 'File' menu in program's main window. Below is the specification of the XML format used

The XML document should conform to the following DTD (document type definition):

<!DOCTYPE sitemap [
  <!ELEMENT sitemap (node+)>
  <!ELEMENT node (node*|text)*>
  <!ATTLIST node
    href CDATA #IMPLIED
    target CDATA #IMPLIED
    icon CDATA #IMPLIED
    icon2 CDATA #IMPLIED
    icon2pos (left|right) "right">
  <!ELEMENT text (#PCDATA)>
]>

Here's a sample XML file that can be used:

<sitemap>
  <node>
    <text>Images</text>
    <node href="Cars/">
      <text>Cars</text>
      <node href="Cars/BMW.htm" icon="c:\icons\caricon.gif" icon2="1">
        <text>BMW</text>
      </node>
      <node href="Cars/Porsche.htm" icon2="c:\icons\caricon2.gif" icon2pos="left">
        <text>Porsche</text>
      </node>
    </node>
    <node>
      <text>Nature</text>
      <node href="animals/" icon2="4" icon2pos="right">
        <text>animals</text>
      </node>
      <node href="forests/">
        <text>forests</text>
      </node>
      <node href="mountains/" icon2="c:\icons\c.gif">
        <text>mountains</text>
      </node>
    </node>
  </node>
</sitemap>

If you have a different format of XML data, you can easily convert it to the above format by using an XSLT transformation file.

Note: XML mode is only available in Professional Edition of DHTML Menu Studio.