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

# Generator: GetXMLFromPath

| Property | Value |
| --- | --- |
| 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

```xml

<generator class="org.weborganic.bastille.xml.GetXMLFromPath" 
           name="xml"
           target="main">
  <parameter name="path" value="acme/foo/bar"/>
</generator>
```

