Re: [xslt] Splitting a result into subtrees
- From: Michael Ludwig <mlu as-guides com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Splitting a result into subtrees
- Date: Fri, 30 Jan 2009 16:52:10 +0100
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]