Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for xml::grove::path (redhat section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

XML::Grove::Path(3)	       User Contributed Perl Documentation	      XML::Grove::Path(3)

       XML::Grove::Path - return the object at a path

	use XML::Grove::Path;

	# Using at_path method on XML::Grove::Document or XML::Grove::Element:
	$xml_obj = $grove_object->at_path("/some/path");

	# Using an XML::Grove::Path instance:
	$pather = XML::Grove::Path->new();
	$xml_obj = $pather->at_path($grove_object);

       "XML::Grove::Path" returns XML objects located at paths.  Paths are strings of element
       names or XML object types seperated by slash ("/") characters.  Paths must always start at
       the grove object passed to `"at_path()"'.  "XML::Grove::Path" is not XPath, but it should
       become obsolete when an XPath implementation is available.

       Paths are like URLs


       The path segments can be element names or object types, the objects types are named using:


       The `"#any"' object type matches any type of object, it is essentially an index into the
       contents of the parent object.

       The `"#text"' object type treats text objects as if they are not normalized.  Two consecu-
       tive text objects are seperate text objects.

       Ken MacLeod, ken@bitsko.slc.ut.us

       perl(1), XML::Grove(3)

       Extensible Markup Language (XML) <http://www.w3c.org/XML>

perl v5.8.0				    1999-08-17			      XML::Grove::Path(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 03:11 AM.