Parser Object Method List
namespace(name)
returns the namespace name (URI), if any. The argument has to be a name passed to a Start or End handler
eq_name(name1, name2)
true if names are identical after namespace resolution
generate_ns_name(name, namespace)
return a name for use by namespace() and eq_name()
default_current
when called from a handler, invokes the default handler (if registered) with the underlying characters from the document
current_line, current_column, current_byte
current parse location
base(newBase)
returns the base URL used for relative-URL resolution, first changing it if a newBase is provided
context
returns a list containing the element type stack
current_element
returns type of immediately enclosing element
in_element(type)
returns true if in the content of an element of the given type
depth
returns the depth of the element stack
position_in_context(lines)
returns a chunk of the document around the current parse position
parse(source)
the argument should either be a string containing the whole document, or an open file handle
parsefile
parse a file, by name
Title Page Road Map Where to Get These Slides Who Am I? What Is Perl? What Perl Is What Perl Feels Like Reasons to Love Perl Reasons to Fear Perl Perl's Competitors Perl Today How to Learn Perl How to Get Perl (It's Free!) Some Perl Packages Introducing CPAN Packages When To Use Perl Good Reasons to Use Perl Good Reasons to Avoid Perl The Perl/XML Software Architecture How the Pieces Fit Together  XML Processor  - Creating a Parser  - Handling Tags  - Handling Text  - PIs & Comments  - The Default Handler  - Entity Declarations  - External Entity References  - Parsing Text!  Package  Package How the Pieces Fit Together Example 1 - Count Comments Declaring Handlers Event Handling Introducing Parser Object Methods Parser Object Method List Miscellaneous Options Namespace Processing Entity Control Multiple Documents in a Stream Switching Handlers XML::Parser Styles  Style  Style  Styles  Style  Style Turn Verse Numbers to Attributes There's More Than One Way To Do It! That Irritating <p> OK, Lose the <p>'s There's More Than One Way To Do It! Find Jesus! Build a Term List from the XML Spec Perl/XML Applications  Details  Application  Snippets  Snippets Conclusions Lessons Perl and XML are mainstream technology!