Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

XML File - Condition XML

XML File Command Grooper.EDI

Applies conditioning and normalization to an XML file.

Remarks

Condition XML allows you to remove unwanted nodes from an XML file by specifying an XPath selector.
You can also define namespace mappings for use in your XPath expressions and control the formatting of the output XML.

How to Use

  1. Set the Removal Selector to an XPath expression that matches the nodes you want to remove.
  2. (Optional) Provide Namespace Mappings if your XML uses namespaces and your XPath needs to reference them.
  3. (Optional) Choose the desired XML Formatting for the output file.

Example:

  • Removal Selector: //ns:chapter[@draft='true']
  • Namespace Mappings: ns=http://www.example.com/schema
  • XML Formatting: Indented

This will remove all chapter elements in the specified namespace that have a draft="true" attribute, and save the XML with indentation.

Properties

NameTypeDescription

See Also

Notification