Cernunnos Manual


${doc()}

** DEPRECATED ** since 1.1.0

Use ${parseXml} instead.

Description:

Parses an XML Document from the specified LOCATION and returns the root element. The identified resource must be parsable XML.

Reagents:

Name XPath Description Reagent Type Expected Type Required
CACHE @cache A shared Map to cache items in. The default is the value of the 'Attributes.CACHE' request attribute. PHRASE java.util.Map No
CACHE_MODEL @cache-model Specify either NONE, ONE, or ALL. PHRASE java.lang.String No
ENTITY_RESOLVER @entity-resolver Optional org.xml.sax.EntityResolver to use in document parsing. By default, this phrase looks for an EntityResolver instance under the request attribute 'XmlAttributes.ENTITY_RESOLVER' and will use it if present. PHRASE org.xml.sax.EntityResolver No
CONTEXT @context The context from which missing elements of the LOCATION can be inferred if it is relative. The default is a URL representing the filesystem location from which Java is executing. PHRASE java.lang.String No
LOCATION descendant-or-self::text() Location of a resource from which a document may be read. May be a filesystem path (absolute or relative), or a URL. If relative, the location will be evaluated from the CONTEXT. If omitted, the value of the 'Attributes.LOCATION' request attribute will be used. PHRASE java.lang.String No

Examples: