ret->parent
would screw up xml_read
later on. But only sometimes. That stupid omission
cost me a rather horrible evening in July of 2000.
XMLAPI XML * xml_create (const char * name) { XML * ret; ret = (XML *) MALLOC (sizeof (struct _element)); memset (ret, 0, sizeof (struct _element)); ret->name = xml_strdup (name); return (ret); } |
This code and documentation are released under the terms of the GNU license. They are copyright (c) 2000-2003, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license. This presentation was created using LPML. |