Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: XML Parser question

by shmem (Chancellor)
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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994685]
help
Chatterbox?
[Corion]: So now there will be the fun of me explaining to the project that $other_project had low priority because $project has high priority. If $project picks up the task from $other_project, they also will need to reprioritize my tasks to get that done...
[Corion]: ... of course at the cost of something else on my list of tasks for $project, as there only is a finite amount of days until $deadline.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-08-17 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (287 votes). Check out past polls.

    Notices?