Name : perl-XML-XPath-Helper-Const
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-05-03 07:34:58
|
Group : Unspecified
| Source RPM : perl-XML-XPath-Helper-Const-0.04-lp154.1.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Exports some precompiled xpath constants for XML::LibXML
|
Description :
This module provides some precompiled XPath expressions (refer to XML::LibXML::XPathExpression for details about this).
The provided constants are:
* \'XPATH_SIMPLE_LIST\'
Selects the \"simple list nodes\" contained in the current node; i.e. the nodes that contain at least one child node, all the child nodes have the same name and no child node has child nodes again.
Example:
my $dom = XML::LibXML->load_xml(string => < < \'EOT\'); < root> < findthis> < entry>a< /entry> < entry>b< /entry> < entry>c< /entry> < /findthis> < ignorethis> < foo>a< /foo> < bar>b< /bar> < /ignorethis> < ignorethat> < child> < childofchild>< /childofchild> < /child> < /ignorethat> < simpletag>blah< /simpletag> < /root> EOT my AATTnodes = $dom->documentElement->findnodes(XPATH_SIMPLE_LIST);
Array \'AATTnodes\' contains a single node: \'< findthis>\'
* \'XPATH_SIMPLE_TAGS\'
Find all nodes that have no child nodes.
* \'XPATH_NESTED_TAGS\'
Find all nodes that have at least one child node.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-X/15.4/noarch |