iPE::XML::Wrappers(3)

NAME
iPE::XML::Wrappers - A simple package that helps start up XML error checking and parsing.

FUNCTIONS

XMLCheck(filename, filehandle)
    Runs the XML checker using XML::Parser::Checker in the basic libraries. This will verify that the specified XML file conforms to DTD, if any is specified in the XML file, and that the XML file is well-formed. This is good for filtering out a lot of errors without building it into your code.

    The filehandle must be opened already. The filename is passed so error messages can be deisplayed with the filename.

XMLParse(filename, filehandle, handlers)
    Initiates XML parsing via the XML::Parser package, and returns the created parser object. This object is an XML::Parser, and all methods to this object can be called. See XML::Parser for more details.

    The filehandle must be to an open file at the beginning point of the file. The filename is required to print out error messages with the filename.

    The handlers argument is a hash reference to all callback handlers you want to use for this parse. Here is an example:

        XMLParse($filename, \*IN,
            { Start => \&_parse_start,
              Char  => \&_parse_char,
              End   => \&_parse_end  } );

    The Start handler is used to parse all data for tags which are not just end tags (i.e., either of type <tag> or type <tag />), and is passed an expat object, the tag itself, and a hash of attributes, in that order. The Char handler handles all data between start and end tags which are not tags, but are parsed character data. For example, the Char handler handling the file with <author>Bob</author> in it would receive "Bob". It is passed the expat object and the data itself. The end tag gets all terminating tags (i.e. </tag> and <tag />).

    For more information about XML parsing, see the man page XML::Parser.

SEE ALSO
XML::Object

AUTHOR
Bob Zimmermann (rpz@cse.wustl.edu)

POD ERRORS
Hey! The above document had some coding errors, which are explained below:

Around line 109:
    You forgot a '=back' before '=head1'