XML::DOM::XPath man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XPath(3)	      User Contributed Perl Documentation	      XPath(3)

NAME
       XML::DOM::XPath - Perl extension to add XPath support to XML::DOM,
       using XML::XPath engine

SYNOPSIS
	 use XML::DOM::XPath;

	 my $parser= XML::DOM::Parser->new();
	 my $doc = $parser->parsefile ("file.xml");

	 # print all HREF attributes of all CODEBASE elements
	 # compare with the XML::DOM version to see how much easier it is to use
	 my @nodes = $doc->findnodes( '//CODEBASE[@HREF]/@HREF');
	 print $_->getValue, "\n" foreach (@nodes);

DESCRIPTION
       XML::DOM::XPath allows you to use XML::XPath methods to query a DOM.
       This is often much easier than relying only on getElementsByTagName.

       It lets you use all of the XML::DOM methods.

METHODS
       Those methods can be applied to a whole dom object or to a node.

       findnodes($path)

       return a list of nodes found by $path.

       findnodes_as_string($path)

       return the nodes found reproduced as XML. The result is not guaranteed
       to be valid XML though.

       findvalue($path)

       return the concatenation of the text content of the result nodes

       exists($path)

       return true if the given path exists.

       matches($path)

       return true if the node matches the path.

SEE ALSO
	 XML::DOM

	 XML::XPathEngine

AUTHOR
       Michel Rodriguez, mirod@cpan.org

COPYRIGHT AND LICENSE
       Copyright 2003 by Michel Rodriguez

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.8.8			  2008-04-14			      XPath(3)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net