Instance Property

XPath

Returns the XPath expression identifying the receiver’s location in the document tree.

Declaration

@property(readonly, copy) NSString *XPath;

Discussion

For example, this method might return a string such as “foo/bar[2]/baz”. The result of this method can be used directly in the nodesForXPath:error: and objectsForXQuery:constants:error: methods.

See Also

Executing Queries

- nodesForXPath:error:

Returns the nodes resulting from executing an XPath query upon the receiver.

- objectsForXQuery:error:

Returns the objects resulting from executing an XQuery query upon the receiver.

- objectsForXQuery:constants:error:

Returns the objects resulting from executing an XQuery query upon the receiver.