Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

XMLContent

A global object that provides methods to iterate over the XML content.

You can access an XMLContent object by calling getAsXmlContent() on a request object.

You access XML data in a POST or URL parameter by calling request.postParams.<parameter name>.getAsXmlContent() or request.urlParams.<parameter name>.getAsXmlContent().

Parent Topic:XML APIs

XMLContent - getIterator()

Returns an XMLElementIterator object for the XML content.

NameTypeDescription
None  
TypeDescription
XMLElementIteratorAn object that can be used to iterate over elements in the XMLContent object.

XMLContent - getIterator(String xPath)

Returns an XMLElementIterator object for the XML content based on the specified parameter.

NameTypeDescription
xPathStringAn xPath-like expression that specifies where in the XMLContent object to start.
TypeDescription
XMLElementIteratorAn object that can be used to iterate over elements in the XMLContent object.