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

Nope, just at your inability to know that parse_file is used to parse a file!

Replies are listed 'Best First'.
Re^12: Processing Two XML Files in Parallel
by Logicus (Initiate) on Jul 23, 2011 at 01:51 UTC
    When did I say that I didn't know what parse_file does, your holiness?

      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.
      A reply falls below the community's threshold of quality. You may see it by logging in.