aboutsummaryrefslogtreecommitdiffstats
path: root/doc/tutorial/xmltutorial.xml
diff options
context:
space:
mode:
authorMST 2002 John Fleck <jfleck@inkstain.net>2002-12-16 04:34:57 +0000
committerJohn Fleck <jfleck@src.gnome.org>2002-12-16 04:34:57 +0000
commit44aacb34043e6f18afb45fe5d0126808aa194d9a (patch)
tree3d9a1ffbb70c1d68c01dfe387c12be66819ab298 /doc/tutorial/xmltutorial.xml
parentda46d2d31e49503b087874cc987045dd09169d26 (diff)
downloadandroid_external_libxml2-44aacb34043e6f18afb45fe5d0126808aa194d9a.tar.gz
android_external_libxml2-44aacb34043e6f18afb45fe5d0126808aa194d9a.tar.bz2
android_external_libxml2-44aacb34043e6f18afb45fe5d0126808aa194d9a.zip
doc/tutorial/xmltutorial.xml doc/tutorial/includekeyword.c
Sun Dec 15 21:27:30 MST 2002 John Fleck <jfleck@inkstain.net> * doc/tutorial/xmltutorial.xml * doc/tutorial/includekeyword.c * doc/tutorial/includegetattribute.c plus generated html and pdf Adding fix from Niraj Tolia to tutorial to properly free memory.
Diffstat (limited to 'doc/tutorial/xmltutorial.xml')
-rw-r--r--doc/tutorial/xmltutorial.xml14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/tutorial/xmltutorial.xml b/doc/tutorial/xmltutorial.xml
index 7469ed5b..14dc2ca6 100644
--- a/doc/tutorial/xmltutorial.xml
+++ b/doc/tutorial/xmltutorial.xml
@@ -37,6 +37,10 @@
<revnumber>4</revnumber>
<date>Nov. 10, 2002</date>
</revision>
+ <revision>
+ <revnumber>5</revnumber>
+ <date>Dec. 15, 2002</date>
+ </revision>
</revhistory>
</articleinfo>
<abstract>
@@ -381,14 +385,17 @@ parseStory (xmlDocPtr doc, xmlNodePtr cur, char *keyword) {
void
getReference (xmlDocPtr doc, xmlNodePtr cur) {
+ xmlChar *uri;
cur = cur->xmlChildrenNode;
while (cur != NULL) {
if ((!xmlStrcmp(cur->name, (const xmlChar *)"reference"))) {
- <co id="getattributevalue" /> printf("uri: %s\n", xmlGetProp(cur, "uri"));
- }
+ <co id="getattributevalue" /> uri = xmlGetProp(cur, "uri");
+ printf("uri: %s\n", uri);
+ xmlFree(uri);
+ }
cur = cur->next;
}
- return;
+ return;
}
</programlisting>
@@ -555,6 +562,7 @@ getReference (xmlDocPtr doc, xmlNodePtr cur) {
<member>Marcus Labib Iskander</member>
<member>Christopher R. Harris</member>
<member>Igor Zlatkovic</member>
+ <member>Niraj Tolia</member>
</simplelist>
</para>
</appendix>