comparison src/xmlnode.h @ 9837:dafebadcf8d2

[gaim-migrate @ 10714] this should at least mostly work... adda xmlnode_to_formatted_str() function that makes the XML readable, rather than spitting it out all on 1 line, which the parser may be OK with, but most of us humans have a harder time with this is the result of grim kicking my ass into gear, and much discussion with him, so he gets a sizeable chunk of the credit for this, if it works. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 23 Aug 2004 05:06:38 +0000
parents b5dbd1839716
children d88ee1d73a93
comparison
equal deleted inserted replaced
9836:d5a2232f83e4 9837:dafebadcf8d2
52 char *xmlnode_get_data(xmlnode *node); 52 char *xmlnode_get_data(xmlnode *node);
53 void xmlnode_set_attrib(xmlnode *node, const char *attr, const char *value); 53 void xmlnode_set_attrib(xmlnode *node, const char *attr, const char *value);
54 const char *xmlnode_get_attrib(xmlnode *node, const char *attr); 54 const char *xmlnode_get_attrib(xmlnode *node, const char *attr);
55 void xmlnode_remove_attrib(xmlnode *node, const char *attr); 55 void xmlnode_remove_attrib(xmlnode *node, const char *attr);
56 char *xmlnode_to_str(xmlnode *node, int *len); 56 char *xmlnode_to_str(xmlnode *node, int *len);
57 char *xmlnode_to_formatted_str(xmlnode *node, int *len);
57 xmlnode *xmlnode_from_str(const char *str, size_t size); 58 xmlnode *xmlnode_from_str(const char *str, size_t size);
58 xmlnode *xmlnode_copy(xmlnode *src); 59 xmlnode *xmlnode_copy(xmlnode *src);
59 60
60 void xmlnode_free(xmlnode *node); 61 void xmlnode_free(xmlnode *node);
61 62