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.
55 * @see <a href="http://www.w3.org/TR/xpath">XPath Specification</a>
76 // variable resolution scopes. Sufficient for simple XPath 1.0 expressions.
111 * Use an XPath string to select a single node. XPath namespace
116 * @param str A valid XPath string.
117 * @return The first node found that matches the XPath, or null.
128 * Use an XPath string to select a single node.
129 * XPath namespace prefixes are resolved from the namespaceNode.
132 * @param str A valid XPath string.
133 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
134 * @return The first node found that matches the XPath, or null.
151 * Use an XPath string to select a nodelist.
152 * XPath namespace prefixes are resolved from the contextNode.
155 * @param str A valid XPath string.
167 * Use an XPath string to select a nodelist.
168 * XPath namespace prefixes are resolved from the namespaceNode.
171 * @param str A valid XPath string.
172 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
182 // Execute the XPath, and have it return the result
190 * Use an XPath string to select a nodelist.
191 * XPath namespace prefixes are resolved from the contextNode.
194 * @param str A valid XPath string.
206 * Use an XPath string to select a nodelist.
207 * XPath namespace prefixes are resolved from the namespaceNode.
210 * @param str A valid XPath string.
211 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
221 // Execute the XPath, and have it return the result
229 * Evaluate XPath string to an XObject. Using this method,
230 * XPath namespace prefixes will be resolved from the namespaceNode.
232 * @param str A valid XPath string.
234 * @see org.apache.xpath.objects.XObject
235 * @see org.apache.xpath.objects.XNull
236 * @see org.apache.xpath.objects.XBoolean
237 * @see org.apache.xpath.objects.XNumber
238 * @see org.apache.xpath.objects.XString
239 * @see org.apache.xpath.objects.XRTreeFrag
250 * Evaluate XPath string to an XObject.
251 * XPath namespace prefixes are resolved from the namespaceNode.
257 * @param str A valid XPath string.
258 * @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
260 * @see org.apache.xpath.objects.XObject
261 * @see org.apache.xpath.objects.XNull
262 * @see org.apache.xpath.objects.XBoolean
263 * @see org.apache.xpath.objects.XNumber
264 * @see org.apache.xpath.objects.XString
265 * @see org.apache.xpath.objects.XRTreeFrag
280 // XPath namespaces are resolved from the input context node's document element
287 // Create the XPath object.
288 XPath xpath = new XPath(str, null, prefixResolver, XPath.SELECT, null);
290 // Execute the XPath, and have it return the result
291 // return xpath.execute(xpathSupport, contextNode, prefixResolver);
294 return xpath.execute(xpathSupport, ctxtNode, prefixResolver);
298 * Evaluate XPath string to an XObject.
299 * XPath namespace prefixes are resolved from the namespaceNode.
305 * @param str A valid XPath string.
309 * @see org.apache.xpath.objects.XObject
310 * @see org.apache.xpath.objects.XNull
311 * @see org.apache.xpath.objects.XBoolean
312 * @see org.apache.xpath.objects.XNumber
313 * @see org.apache.xpath.objects.XString
314 * @see org.apache.xpath.objects.XRTreeFrag
328 // Create the XPath object.
329 XPath xpath = new XPath(str, null, prefixResolver, XPath.SELECT, null);
332 // variable resolution scopes. Sufficient for simple XPath 1.0 expressions.
335 // Execute the XPath, and have it return the result
338 return xpath.execute(xpathSupport, ctxtNode, prefixResolver);