diff options
| author | MDT 2004 John Fleck <jfleck@inkstain.net> | 2004-08-25 02:51:27 +0000 |
|---|---|---|
| committer | John Fleck <jfleck@src.gnome.org> | 2004-08-25 02:51:27 +0000 |
| commit | 4c3bb7d8a20c5262882af7fcd41afe3b3d482f12 (patch) | |
| tree | 5a700458aa13e6e7f0df5e72113a5d61c1914249 /doc/tutorial/ar01s06.html | |
| parent | abbf9dfd62f4b85725a9ef948f1891c28418bf57 (diff) | |
| download | android_external_libxml2-4c3bb7d8a20c5262882af7fcd41afe3b3d482f12.tar.gz android_external_libxml2-4c3bb7d8a20c5262882af7fcd41afe3b3d482f12.tar.bz2 android_external_libxml2-4c3bb7d8a20c5262882af7fcd41afe3b3d482f12.zip | |
doc/tutorial/xmltutorial.xml, xmltutorial.pdf, *.html fix Xpath memory
Tue Aug 24 20:49:15 MDT 2004 John Fleck <jfleck@inkstain.net>
* doc/tutorial/xmltutorial.xml, xmltutorial.pdf, *.html
fix Xpath memory leak (thanks to sKaBoy and William Brack)
Diffstat (limited to 'doc/tutorial/ar01s06.html')
| -rw-r--r-- | doc/tutorial/ar01s06.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial/ar01s06.html b/doc/tutorial/ar01s06.html index 767f758d..c09e6efb 100644 --- a/doc/tutorial/ar01s06.html +++ b/doc/tutorial/ar01s06.html @@ -1,4 +1,4 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Writing element content</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="index.html" title="Libxml Tutorial"><link rel="up" href="index.html" title="Libxml Tutorial"><link rel="previous" href="ar01s05.html" title="Using XPath to Retrieve Element Content"><link rel="next" href="ar01s07.html" title="Writing Attribute"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Writing element content</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ar01s05.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ar01s07.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xmltutorialwritingcontent"></a>Writing element content</h2></div></div><div></div></div><p><a class="indexterm" name="id2901386"></a> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Writing element content</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="index.html" title="Libxml Tutorial"><link rel="up" href="index.html" title="Libxml Tutorial"><link rel="previous" href="ar01s05.html" title="Using XPath to Retrieve Element Content"><link rel="next" href="ar01s07.html" title="Writing Attribute"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Writing element content</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ar01s05.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ar01s07.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xmltutorialwritingcontent"></a>Writing element content</h2></div></div><div></div></div><p><a class="indexterm" name="id2586968"></a> Writing element content uses many of the same steps we used above — parsing the document and walking the tree. We parse the document, then traverse the tree to find the place we want to insert our element. For @@ -21,7 +21,7 @@ parseStory (xmlDocPtr doc, xmlNodePtr cur, char *keyword) { current node pointer's location in the tree, specified by <tt class="varname">cur</tt>.</p></td></tr></table></div><p> </p><p> - <a class="indexterm" name="id2901470"></a> + <a class="indexterm" name="id2587052"></a> Once the node has been added, we would like to write the document to file. Is you want the element to have a namespace, you can add it here as well. In our case, the namespace is NULL. |
