Perl XML Parser DOM Tag Handler sample code ....

S

Sherbo

Hello All,

I'm trying to use the latest Xerces XML Perl module for XML file
parsing, but the documentation is rather limited. Does anyone
recommend a Perl XML parser with well-documented DOM tag handlers?

I want to create a handler for three different XML tags: <a>, <b>, and
<c>. Can someone please provide me some sample code to demonstrate how
to :

1.) Write a Perl DOM XML tag handler (in Xerces or other
well-supported Perl XML mod)?
2.) Use multiple tag handlers while reading in an XML file?

Any information would be helpful.

cheers,
Sherban
 
B

Ben Morrow

Quoth (e-mail address removed) (Sherbo):
I'm trying to use the latest Xerces XML Perl module for XML file
parsing, but the documentation is rather limited. Does anyone
recommend a Perl XML parser with well-documented DOM tag handlers?

A well-documented XML DOM parser I have had success with in the past is
XML::LibXML.
I want to create a handler for three different XML tags: <a>, <b>, and
<c>. Can someone please provide me some sample code to demonstrate how
to :

What do you mean by a 'handler'? Do you want the parser to call back
each time it hits a tag? If so, then you want a SAX parser rather than a
DOM one.
1.) Write a Perl DOM XML tag handler (in Xerces or other
well-supported Perl XML mod)?
2.) Use multiple tag handlers while reading in an XML file?

No. Try something for yourself, show us what you've tried, and we'll
help you fix it.

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top