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.
diff --git a/doc/tutorial/ape.html b/doc/tutorial/ape.html
index f473044..9dc363c 100644
--- a/doc/tutorial/ape.html
+++ b/doc/tutorial/ape.html
@@ -10,14 +10,17 @@
 void
 getReference (xmlDocPtr doc, xmlNodePtr cur) {
 
+	xmlChar *uri;
 	cur = cur-&gt;xmlChildrenNode;
 	while (cur != NULL) {
 	    if ((!xmlStrcmp(cur-&gt;name, (const xmlChar *)&quot;reference&quot;))) {
-		    printf(&quot;uri: %s\n&quot;, xmlGetProp(cur, &quot;uri&quot;));
-		    }
+		    uri = xmlGetProp(cur, &quot;uri&quot;);
+		    printf(&quot;uri: %s\n&quot;, uri);
+		    xmlFree(uri);
+	    }
 	    cur = cur-&gt;next;
 	}
-    return;
+	return;
 }