NAME
xmlpp-cli - Command line XML parser using XML::PP
SYNOPSIS
xmlpp-cli [options] <xml-file>
Options:
-h, --help Show brief help message
--man Show full manual page
-s, --strict Enable strict parsing mode (die on errors)
-w, --warn Enable warnings for parsing errors
-c, --collapse Use collapse_structure to simplify output
-i, --indent=N Set Data::Dumper indent level (default: 2)
DESCRIPTION
This program reads an XML file and parses it using the XML::PP module, then outputs the parsed structure using Data::Dumper for inspection.
OPTIONS
- -h, --help
-
Print a brief help message and exit.
- --man
-
Print the full manual page and exit.
- -s, --strict
-
Enable strict parsing mode. The parser will die when it encounters unknown entities or unescaped ampersands.
- -w, --warn
-
Enable warnings for unknown or malformed XML entities during parsing.
- -c, --collapse
-
Use the collapse_structure method to simplify the output into a more XML::Simple-like format.
- -i, --indent=N
-
Set the indentation level for Data::Dumper output (default: 2).
EXAMPLES
Parse a simple XML file: xmlpp-cli example.xml
Parse with strict error checking: xmlpp-cli --strict --warn example.xml
Parse and collapse the structure: xmlpp-cli --collapse example.xml
Parse with custom indentation: xmlpp-cli --indent=4 example.xml
AUTHOR
CLI wrapper for XML::PP module