mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-14 20:01:04 +03:00
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.
This commit is contained in:
committed by
John Fleck
parent
da46d2d31e
commit
44aacb3404
@ -8,14 +8,17 @@
|
||||
void
|
||||
getReference (xmlDocPtr doc, xmlNodePtr cur) {
|
||||
|
||||
xmlChar *uri;
|
||||
cur = cur->xmlChildrenNode;
|
||||
while (cur != NULL) {
|
||||
if ((!xmlStrcmp(cur->name, (const xmlChar *)"reference"))) {
|
||||
printf("uri: %s\n", xmlGetProp(cur, "uri"));
|
||||
}
|
||||
uri = xmlGetProp(cur, "uri");
|
||||
printf("uri: %s\n", uri);
|
||||
xmlFree(uri);
|
||||
}
|
||||
cur = cur->next;
|
||||
}
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user