mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
90 lines
4.1 KiB
HTML
90 lines
4.1 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>xpointer: API to handle XML Pointers</title>
|
|
<meta name="generator" content="Libxml2 devhelp stylesheet">
|
|
<link rel="start" href="index.html" title="libxml2 Reference Manual">
|
|
<link rel="up" href="general.html" title="API">
|
|
<link rel="stylesheet" href="style.css" type="text/css">
|
|
<link rel="chapter" href="general.html" title="API">
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
|
<td><a accesskey="p" href="libxml2-xpathInternals.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
|
<td><a accesskey="u" href="general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
|
<th width="100%" align="center">libxml2 Reference Manual</th>
|
|
</tr></table>
|
|
<h2><span class="refentrytitle">xpointer</span></h2>
|
|
<p>xpointer - API to handle XML Pointers</p>
|
|
<p>API to handle XML Pointers Base implementation was made accordingly to W3C Candidate Recommendation 7 June 2000</p>
|
|
<p>Author(s): Daniel Veillard </p>
|
|
<div class="refsynopsisdiv">
|
|
<h2>Synopsis</h2>
|
|
<pre class="synopsis"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPtrEval">xmlXPtrEval</a> (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx);
|
|
<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> <a href="#xmlXPtrNewContext">xmlXPtrNewContext</a> (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> here, <br> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> origin);
|
|
</pre>
|
|
</div>
|
|
<div class="refsect1" lang="en"><h2>Description</h2></div>
|
|
<div class="refsect1" lang="en">
|
|
<h2>Details</h2>
|
|
<div class="refsect2" lang="en">
|
|
<div class="refsect2" lang="en">
|
|
<h3>
|
|
<a name="xmlXPtrEval"></a>xmlXPtrEval ()</h3>
|
|
<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPtrEval (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx)<br>
|
|
</pre>
|
|
<p>Evaluate the XPath Location Path in the given context.</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left">
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="term"><i><tt>str</tt></i>:</span></td>
|
|
<td>the XPointer expression</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="term"><i><tt>ctx</tt></i>:</span></td>
|
|
<td>the XPointer context</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
|
|
<td>the <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> resulting from the evaluation or NULL. the caller has to free the object.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<h3>
|
|
<a name="xmlXPtrNewContext"></a>xmlXPtrNewContext ()</h3>
|
|
<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> xmlXPtrNewContext (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> here, <br> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> origin)<br>
|
|
</pre>
|
|
<p>Create a new XPointer context</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left">
|
|
<tbody>
|
|
<tr>
|
|
<td><span class="term"><i><tt>doc</tt></i>:</span></td>
|
|
<td>the XML document</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="term"><i><tt>here</tt></i>:</span></td>
|
|
<td>the node that directly contains the XPointer being evaluated or NULL</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="term"><i><tt>origin</tt></i>:</span></td>
|
|
<td>the element from which a user or program initiated traversal of the link, or NULL.</td>
|
|
</tr>
|
|
<tr>
|
|
<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
|
|
<td>the <a href="libxml2-xpath.html#xmlXPathContext">xmlXPathContext</a> just allocated.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
</div>
|
|
<hr>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|