Home | History | Annotate | Download | only in xpath

Lines Matching refs:XPath

21 package org.apache.xpath;
27 import org.apache.xpath.objects.XObject;
36 * low-level XPath API.
50 * @see <a href="http://www.w3.org/TR/xpath">XPath Specification</a>
56 * Use an XPath string to select a single node. XPath namespace
61 * @param str A valid XPath string.
62 * @return The first node found that matches the XPath, or null.
73 * Use an XPath string to select a single node.
74 * XPath namespace prefixes are resolved from the namespaceNode.
77 * @param str A valid XPath string.
78 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
79 * @return The first node found that matches the XPath, or null.
96 * Use an XPath string to select a nodelist.
97 * XPath namespace prefixes are resolved from the contextNode.
100 * @param str A valid XPath string.
112 * Use an XPath string to select a nodelist.
113 * XPath namespace prefixes are resolved from the namespaceNode.
116 * @param str A valid XPath string.
117 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
127 // Execute the XPath, and have it return the result
135 * Use an XPath string to select a nodelist.
136 * XPath namespace prefixes are resolved from the contextNode.
139 * @param str A valid XPath string.
151 * Use an XPath string to select a nodelist.
152 * XPath namespace prefixes are resolved from the namespaceNode.
155 * @param str A valid XPath string.
156 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
166 // Execute the XPath, and have it return the result
174 * Evaluate XPath string to an XObject. Using this method,
175 * XPath namespace prefixes will be resolved from the namespaceNode.
177 * @param str A valid XPath string.
179 * @see org.apache.xpath.objects.XObject
180 * @see org.apache.xpath.objects.XNull
181 * @see org.apache.xpath.objects.XBoolean
182 * @see org.apache.xpath.objects.XNumber
183 * @see org.apache.xpath.objects.XString
184 * @see org.apache.xpath.objects.XRTreeFrag
195 * Evaluate XPath string to an XObject.
196 * XPath namespace prefixes are resolved from the namespaceNode.
202 * @param str A valid XPath string.
203 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
205 * @see org.apache.xpath.objects.XObject
206 * @see org.apache.xpath.objects.XNull
207 * @see org.apache.xpath.objects.XBoolean
208 * @see org.apache.xpath.objects.XNumber
209 * @see org.apache.xpath.objects.XString
210 * @see org.apache.xpath.objects.XRTreeFrag
224 // variable resolution scopes. Sufficient for simple XPath 1.0 expressions.
228 // XPath namespaces are resolved from the input context node's document element
235 // Create the XPath object.
236 XPath xpath = new XPath(str, null, prefixResolver, XPath.SELECT, null);
238 // Execute the XPath, and have it return the result
239 // return xpath.execute(xpathSupport, contextNode, prefixResolver);
242 return xpath.execute(xpathSupport, ctxtNode, prefixResolver);
246 * Evaluate XPath string to an XObject.
247 * XPath namespace prefixes are resolved from the namespaceNode.
253 * @param str A valid XPath string.
257 * @see org.apache.xpath.objects.XObject
258 * @see org.apache.xpath.objects.XNull
259 * @see org.apache.xpath.objects.XBoolean
260 * @see org.apache.xpath.objects.XNumber
261 * @see org.apache.xpath.objects.XString
262 * @see org.apache.xpath.objects.XRTreeFrag
276 // Create the XPath object.
277 XPath xpath = new XPath(str, null, prefixResolver, XPath.SELECT, null);
280 // variable resolution scopes. Sufficient for simple XPath 1.0 expressions.
283 // Execute the XPath, and have it return the result
286 return xpath.execute(xpathSupport, ctxtNode, prefixResolver);