1. A method of applying, on a device having a processor, queries to a document set comprising at least one document, respective documents comprising at least one node located at a node path from a root node of the document and having a node identifier and a node value, the method comprising: executing on the processor instructions configured to, upon receiving a query specifying a query node path comprising at least one pair of a query node identifier and a query node value for the node having the query node identifier: identify at least one matching document having at least one matching node comprising, for respective pairs of query node identifiers and query node values, at least one path node in the node path of the matching node that matches the query node identifier and a node value of the path node that matches the query node value; and present at least a portion of the at least one matching document in response to the query.
1. A method of applying, on a device having a processor, queries to a document set comprising at least one document, respective documents comprising at least one node located at a node path from a root node of the document and having a node identifier and a node value, the method comprising: executing on the processor instructions configured to, upon receiving a query specifying a query node path comprising at least one pair of a query node identifier and a query node value for the node having the query node identifier: identify at least one matching document having at least one matching node comprising, for respective pairs of query node identifiers and query node values, at least one path node in the node path of the matching node that matches the query node identifier and a node value of the path node that matches the query node value; and present at least a portion of the at least one matching document in response to the query. 6. The method of claim 1 : the query specifying: a first query node identifier, and a second query node identifier having a second node path having a relationship with a first node path of a matching node that matches the first query node identifier; and identifying the matching documents comprising: identifying at least one matching document having at least one matching node comprising: a first matching node that matches the first query node identifier; and a second matching node that matches the second query node identifier and a second node path satisfying the relationship with the first node path of the first matching node.