xmlRemoveFromDocument (XML Creation & Manipulation)
- Purpose
- This command removes data from an XML document and returns the result.
- Returns NULL if any argument is EMPTY. An error occurs if the xml_string argument is not a valid XML document or any path argument is not a valid path expression or is $ or contains a * or ** wildcard. The path arguments are evaluated left to right.
- The document produced by evaluating one path becomes the new value against which the next path is evaluated. It is not an error if the element that has to be removed does not exist in the document; in that case, the path does not affect the document.
- Syntax
- xmlRemoveFromDocument(xml_string || path, VariableName )
- Target
- xml_string || path
- Value
- VariableName
- Return Value
- Returns the result of the XML
Example(s):
Click here to see the example