Re: [xslt] Splitting a result into subtrees



Nick Wellnhofer schrieb:

[...] Perl API [...]

my $part1 =
$doc->findnodes('xpath_for_subtree_1')->get_node(1)->toString();
my $part2 =
$doc->findnodes('xpath_for_subtree_2')->get_node(1)->toString();
...

The PHP API should provide similar functions.

Unfortunately, it doesn't. I guess I'd have
to use DOMDocument::getElementsByTagName or
DOMDocument::getElementsByTagNameNS.

http://de.php.net/manual/en/book.dom.php

Michael Ludwig


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]