GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::GROVE::PATH (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



 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);



DESCRIPTION

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 <B>notB> XPath, but it should become obsolete when an XPath implementation is available.

Paths are like URLs



    /html/body/ul/li[4]
    /html/body/#pi[2]



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



    #element
    #pi
    #comment
    #text
    #cdata
    #any



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 consecutive text objects are seperate text objects.

AUTHOR

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

SEE ALSO

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

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::GROVE::PATH (3) 1999-08-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.