develooper Front page | perl.beginners | Postings from February 2002

PERL and XML Parser

Thread Next
February 1, 2002 04:52
PERL and XML Parser
Message ID:
Hi list.

I'm currently doing a perl project involving XML parser.

given this xml snippet:

    <artist>Alice in Chains</rock>
    <artist>The Pixies</artist>
  <categories = "reggae">
    <artist>Bob Marley</artist>
    <artist>Peter Tosh</artist>

how can i get the PCDATA for the element "owner"? i want to get just 
the "owner" elements and the content of the "owner."

i've created a code that will trap for the start and end tags of 
the element "owner" as well as the handlers for the characters 
that were part of the markup but no particular handlers.

please help.



Do You Yahoo!?
Get your free address at

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About