---
title: "Generator: GetXMLFromBerliozPath"
source: https://dev.pageseeder.com/reference/advanced/website/berlioz/generators/org.weborganic.bastille.xml.GetXMLFromBerliozPath.html
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~248
---

# Generator: GetXMLFromBerliozPath

| Property | Value |
| --- | --- |
| Class name: | org.weborganic.bastille.xml.GetXMLFromBerliozPath |
| Version: | 0.6.5 - 25 May 2011 |
| Library: | Bastille |
| Cacheable: | Yes |
| Generated: | 2012-12-21 |

## Description

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

For example, if the Berlioz servlet is mapped to ‘/html/\*’, ‘html/Ping/pong’, tries to look for XML file ‘Ping/pong.xml’ in the XML folder.

For example, if the Berlioz servlet is mapped to ‘\*.html’, ‘Ping/pong.html’, tries 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:

```xml

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

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

