XML::Xerces sample applications
Sample Code
XML::Xerces comes with a number of sample applications:
- SAXCount.pl: Uses the SAX interface to output a count of the number of elements in an XML document
- SAX2Count.pl: Uses the SAX2 interface to output a count of the number of elements in an XML document
- DOMCount.pl: Uses the DOM interface to output a count of the number of elements in an XML document
- DOMPrint.pl: Uses the DOM interface to output a pretty-printed version of an XML file to STDOUT
- DOMCreate.pl: Creates a simple XML document using the DOM interface and writes it to STDOUT
- DOM2hash.pl: Uses the DOM interface to convert the file to a simple hash of lists representation
- EnumVal.pl: Parses and input XML document and outputs the DTD information to STDOUT
- SEnumVal.pl: Parses and input XML document and outputs the XML Schema information to STDOUT