Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^13: Processing Two XML Files in Parallel

by ikegami (Patriarch)
on Jul 23, 2011 at 22:00 UTC ( [id://916346]=note: print w/replies, xml ) Need Help??


in reply to Re^12: Processing Two XML Files in Parallel
in thread Processing Two XML Files in Parallel

You have yet to deny it. Are you saying it's textContent you can't fathom? Maybe it's both!! You never did say which one was so cryptic you had to consult the docs.

  • parse_file parses the file.
  • $root = documentElement gets the root element.
  • $node->textContent gets the node's text content.
  • $node->findnodes('elem') finds "elem" nodes under the current node.
  • $node->appendText appends text to the node.
  • toFile puts the XML in a file.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found