Skip to main content

 Advanced

Advanced topics

Generator: GetXMLFromPath

Class name:org.weborganic.bastille.xml.GetXMLFromPath
Version:0.6.8 - 29 June 2011
Library:Bastille
Cacheable:Yes
Generated:2012-12-21

Description

This generator returns the content of an XML file from the specified path.

Parameters

This generator requires a path parameter. The path parameter must be a relative path from within the XML root folder to an XML file without the extension.

For example, if the path is a/b/c, the generator attempts to load the file [webapp]/WEB-INF/xml/a/b/c.xml.

Services

<generator class="org.weborganic.bastille.xml.GetXMLFromPath" 
           name="xml"
           target="main">
  <parameter name="path" value="acme/foo/bar"/>
</generator>
Created on , last edited on