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

When did I say that I didn't know what parse_file does, your holiness?

Replies are listed 'Best First'.
Re^13: Processing Two XML Files in Parallel
by ikegami (Patriarch) on Jul 23, 2011 at 22:00 UTC

    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.