Get a date-time value from an XML document.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
xpath | str | (optional) xpath to value (default: ".") |
namespaces | map | (optional) namespaces (default: none) |
Render the XML document.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
style | str | (optional) formatting style (one of "plain", "xhtml", "indented"; default: "indented") |
Render a selection of nodes into an xml document.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
xpath | str | (optional) xpath for selector |
Get list of values from an XML document.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
xpath | str | xpath to list of values |
namespaces | map | (optional) namespaces (default: none) |
xml | bool | (optional) capture enclosing XML element (default: false) |
Get the name of the root node in the XML document.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
Get a number from an XML document.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
xpath | str | (optional) xpath to value (default: ".") |
namespaces | map | (optional) namespaces (default: none) |
Replace nodes in XML document selected by xpath-to-value map.
Name | Type | Description |
---|---|---|
doc | xml | |
substitutions | map |
Create an XML selection using an xpath.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
xpath | str | (optional) xpath for selector |
namespaces | map | (optional) namespaces (default: none) |
Get a text value from an XML document.
Name | Type | Description |
---|---|---|
doc | xml | XML document |
xpath | str | (optional) xpath to value (default: ".") |
namespaces | map | (optional) namespaces (default: none) |
xml | bool | (optional) include XML elements (default: false) |
inner | bool | (optional) include only inner XML (default: false ) |