Xtreeme - web development software
Site Search:      

 German version  
Home Products Download Buy Now Affiliates Forum
 SiteXpert - Site Map Generator
 SiteXpert's home page
 Features / Editions (Std vs Pro)
 Download
 Creating sitemap / site index
 Creating DHTML drop-down menu
 Creating search engine
 Screenshots
 Site Map Styles / Samples
» Site map
» Site index
» Portal
» Diagram
» Java Applet
» Mega folders
» more...
Sample site maps / menus created with SiteXpert
 Buy Now / Pricing
Order Now and get DHTML Menu Studio for Free ...
 Reviews And Awards
» CNET's Download.com (Rewarded 5/5)
"...Xtreeme SiteXpert Professional is a solid and affordable tool for Web professionals"
» Internet.com
"...the program can reduce the work load dramatically..."
» Tucows (Head of the Herd Award)
"...assists you in creating an excellent navigation scheme for your website..."
» ZDNet (Awarded Editor's Pick)
"...you'll be impressed with the results."
» more...
 Our customers
 Web sites utilizing our site map software
 Some of our other customers
 Support
 Frequently asked questions
 Discussion Forum
 Dynamic sitemap creation
 Related products / resources
 DHTML Menu Studio
 Search Engine Studio
Question ID: Q1024
Question: How do I import a structure from a database or another source into SiteXpert?
Product: Sitexpert


You can import data from external database using Layout wizard and then clicking XML mode. You will see the dialog box like this below:
xml
Fig 1. Layout Wizard - XML options

In this step you define the source of XML data ('XML layout file' option), which can be a local/network path or URL. 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
    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 specifying an XSLT transformation file.

To allow Layout Wizard to process the XML file click the Finish button.

Note: XML mode is only available in Professional Edition of SiteXpert.

Warning: Using XSLT transformations requires Microsoft MSXML 3.0 (installed in Replace mode). Click here for download and installation instructions.
 Save This Page       Copyright 1998-2007 Xtreeme GmbH