Simple XML Parser for file endpoint
Use the Simple XML Parser to read and write XML documents. It deals with XML data that is not more than two levels deep.
The Simple XML Parser uses the Apache Xerces and Xalan libraries. The parser gives access to the XML document through a script object called xmldom. The xmldom object is an instance of the org.w3c.dom.Document interface. For more information about this interface, see the W3C documentation at http://www.w3schools.com or the Oracle Java API documentation at http://docs.oracle.com.
Note: The XML Parser for file endpoint is the improved and enhanced XML Parser. To access the Simple XML Parser configuration parameters:
- Add a File endpoint.
- On the File endpoint configuration page, click Parser and select Simple XML Parser from the list.
- Expand the Parser section to view the parameters.
Parameters
- Root Tag
- Specify the root tag that encloses entries. The default value is DocRoot.
- Entry Tag
- Name of the element for entries that are passed to the parser. The default value is Entry.
- Value Tag
- Name of the element for attribute values that are passed to the parser. The default value is ValueTag.
- Comment
- Add your comments. The comment is not considered while parsing data.
- Detailed Log
- Select this check box to generate log messages with detailed debug information.
We can also configure the following advanced parameters. Under the Parser section, expand Advanced to view these parameters.
- Omit XML Declaration
- Select this check box to indicate that the parser must omit an XML declaration header in the output stream.
- Document Validation
- Select this check box to request file validation that is based on the specified DTD or schema.
- Namespace Aware
- Select this check box to indicate the parser must request a namespace-aware parser.
- Character Encoding
- Character encoding to use for reading or writing. The default value is UTF-8.
- For more information, go to the SDI documentation and search for Character Encoding in the Simple XML Parser.
- Indent Output
- Select this check box to indent the output according to the depth of the statement lines. The result is cosmetic only; it has no bearing upon the semantic content of the output file.
For detailed information about the Simple XML Parser and examples of its usage, go to the SDI documentation and search for Simple XML Parser.
Parent topic:
File parsers