Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: XML Parser question

by shmem (Canon)
on Sep 20, 2012 at 15:17 UTC ( #994685=note: print w/ replies, xml ) Need Help??


in reply to XML Parser question

How can i retrieve author or description or replycount fields from the XML document given below.

Strip the bogus namepsace identifier jf. Where did you get that from? certainly not from forums.com.

$xml =~ s/jf://g;

Add the attributes you want according to the docs:

XML::RAI::Item->add_mapping($_,$_) for qw(modificationDate author replyCount);

There might be a way to register xmlns:jf within the XML modules suite you are using. Reading the docs might help...


Comment on Re: XML Parser question
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994685]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2015-07-07 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls