Skip to main content

GET_XML_CONTENT

Retrieves XML content from the document or a specific location and sets it as output.

At a glance

  • Category Editor
  • Aliases CTX_GET_XML_CONTENT
  • Version: 1.0.1
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
atLocation to read XML from. Options: CURSOR, CURSOR_PARAGRAPH, XPATH, REPORT.NonefalsefalseNoneNone
xpathXPath expression for reading XML at a specific location.NoneConditionalfalseNoneRequired when at = XPATH

Outputs

TypeDescriptionOptional
textThe retrieved XML content as a string.false
objectThe retrieved XML content as an object (for REPORT).true

Examples

Get full document XML

 - step: GET_XML_CONTENT

Get XML at XPath

 - step: GET_XML_CONTENT
at: XPATH
xpath: "/doc/story/article/headline/p"

See Also

General Resources: