Mercurial > pidgin
comparison src/xmlnode.h @ 13806:25e63008d3bb
[gaim-migrate @ 16229]
Use libxml2 for XML parsing, if available. The biggest benefit from this is actual support for XML namespaces. This fixes a handful of Google Talk integration problems, including typing notifications and buddy icons.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Thu, 08 Jun 2006 01:03:51 +0000 |
| parents | 4229503f1cd9 |
| children | 85144ba7d726 |
comparison
equal
deleted
inserted
replaced
| 13805:853fefb07c79 | 13806:25e63008d3bb |
|---|---|
| 39 * An xmlnode. | 39 * An xmlnode. |
| 40 */ | 40 */ |
| 41 typedef struct _xmlnode | 41 typedef struct _xmlnode |
| 42 { | 42 { |
| 43 char *name; /**< The name of the node. */ | 43 char *name; /**< The name of the node. */ |
| 44 #ifdef HAVE_LIBXML | |
| 45 char *namespace; /**< The namespace of the node */ | |
| 46 #endif | |
| 44 XMLNodeType type; /**< The type of the node. */ | 47 XMLNodeType type; /**< The type of the node. */ |
| 45 char *data; /**< The data for the node. */ | 48 char *data; /**< The data for the node. */ |
| 46 size_t data_sz; /**< The size of the data. */ | 49 size_t data_sz; /**< The size of the data. */ |
| 47 struct _xmlnode *parent; /**< The parent node or @c NULL.*/ | 50 struct _xmlnode *parent; /**< The parent node or @c NULL.*/ |
| 48 struct _xmlnode *child; /**< The child node or @c NULL.*/ | 51 struct _xmlnode *child; /**< The child node or @c NULL.*/ |
| 152 * @param attr The attribute to remove. | 155 * @param attr The attribute to remove. |
| 153 */ | 156 */ |
| 154 void xmlnode_remove_attrib(xmlnode *node, const char *attr); | 157 void xmlnode_remove_attrib(xmlnode *node, const char *attr); |
| 155 | 158 |
| 156 /** | 159 /** |
| 160 * Sets the namespace of a node | |
| 161 * | |
| 162 * @param node The node to qualify | |
| 163 * @param xmlns The namespace of the node | |
| 164 */ | |
| 165 void xmlnode_set_namespace(xmlnode *node, const char *xmlns); | |
| 166 | |
| 167 /** | |
| 168 * Returns the namespace of a node | |
| 169 * | |
| 170 * @param node The node to get the namepsace from | |
| 171 * @return The namespace of this node | |
| 172 */ | |
| 173 const char *xmlnode_get_namespace(xmlnode *node); | |
| 174 | |
| 175 /** | |
| 157 * Returns the node in a string of xml. | 176 * Returns the node in a string of xml. |
| 158 * | 177 * |
| 159 * @param node The starting node to output. | 178 * @param node The starting node to output. |
| 160 * @param len Address for the size of the string. | 179 * @param len Address for the size of the string. |
| 161 * | 180 * |
