mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Bug fixes, improvement on ID/IDREF support, 1.6.2, no memleaks, Daniel
This commit is contained in:
18
tree.h
18
tree.h
@ -210,6 +210,17 @@ typedef struct xmlID {
|
||||
} xmlID;
|
||||
typedef xmlID *xmlIDPtr;
|
||||
|
||||
/*
|
||||
* An XML IDREF instance.
|
||||
*/
|
||||
|
||||
typedef struct xmlRef {
|
||||
struct xmlRef *next; /* next Ref */
|
||||
const CHAR *value; /* The Ref name */
|
||||
xmlAttrPtr attr; /* The attribut holding it */
|
||||
} xmlRef;
|
||||
typedef xmlRef *xmlRefPtr;
|
||||
|
||||
/*
|
||||
* A node in an XML tree.
|
||||
*/
|
||||
@ -253,6 +264,7 @@ typedef struct xmlDoc {
|
||||
struct xmlNs *oldNs; /* Global namespace, the old way */
|
||||
struct xmlNode *root; /* the document tree */
|
||||
void *ids; /* Hash table for ID attributes if any */
|
||||
void *refs; /* Hash table for IDREFs attributes if any */
|
||||
} _xmlDoc;
|
||||
typedef _xmlDoc xmlDoc;
|
||||
typedef xmlDoc *xmlDocPtr;
|
||||
@ -440,6 +452,12 @@ const CHAR * xmlNodeGetLang (xmlNodePtr cur);
|
||||
void xmlNodeSetLang (xmlNodePtr cur,
|
||||
const CHAR *lang);
|
||||
|
||||
/*
|
||||
* Removing content.
|
||||
*/
|
||||
int xmlRemoveProp (xmlAttrPtr attr); /* TODO */
|
||||
int xmlRemoveNode (xmlNodePtr node); /* TODO */
|
||||
|
||||
/*
|
||||
* Internal, don't use
|
||||
*/
|
||||
|
Reference in New Issue
Block a user