Advanced

Advanced topics

 

Generator: GetXMLFromPathInfo

Class name:org.weborganic.bastille.xml.GetXMLFromPathInfo
Version:0.6.0 - 5 July 2010
Library:Bastille
Cacheable:Yes
Generated:2012-12-21

Description

This generator returns the content of an XML file using the Berlioz servlet path info.

For example, if the Berlioz servlet is mapped to '/html/*', 'html/Ping/pong' will try to look for XML file 'Ping/pong.xml' in the XML folder.

Configuration

The root XML folder can be configured globally using the Berlioz configuration:

For example:

<node name="bastille">
   <map/>
   <node name="xml">
     <map>
       <entry key="root"     value="xml/content"/>
     </map>
   </node>
 </node>
 

To define the location of the XML folder, use the Berlioz config property: bastille.xml.root.

Created on , last edited on