comparison libpurple/xmlnode.h @ 20453:69febfa6d307

propagate from branch 'im.pidgin.pidgin' (head d3e5a5add3f39caa08b46c83177328e51c2d961a) to branch 'im.pidgin.cpw.khc.msnp14' (head a8f6c999b039b4097aa70cd8d2597f3127615435)
author Carlos Silva <typ0@pidgin.im>
date Sat, 16 Jun 2007 04:00:32 +0000
parents 3fc94e7c7056
children 5c1ed6296b56 44b4e8bd759b 86da6ab1f612
comparison
equal deleted inserted replaced
20452:5c34a0a3c362 20453:69febfa6d307
122 * null-terminated you can pass in -1. 122 * null-terminated you can pass in -1.
123 */ 123 */
124 void xmlnode_insert_data(xmlnode *node, const char *data, gssize size); 124 void xmlnode_insert_data(xmlnode *node, const char *data, gssize size);
125 125
126 /** 126 /**
127 * Gets data from a node. 127 * Gets (escaped) data from a node.
128 * 128 *
129 * @param node The node to get data from. 129 * @param node The node to get data from.
130 * 130 *
131 * @return The data from the node. You must g_free 131 * @return The data from the node. This data is in raw escaped format.
132 * You must g_free this string when finished using it.
133 */
134 char *xmlnode_get_data(xmlnode *node);
135
136 /**
137 * Gets unescaped data from a node.
138 *
139 * @param node The node to get data from.
140 *
141 * @return The data from the node, in unescaped form. You must g_free
132 * this string when finished using it. 142 * this string when finished using it.
133 */ 143 */
134 char *xmlnode_get_data(xmlnode *node); 144 char *xmlnode_get_data_unescaped(xmlnode *node);
135 145
136 /** 146 /**
137 * Sets an attribute for a node. 147 * Sets an attribute for a node.
138 * 148 *
139 * @param node The node to set an attribute for. 149 * @param node The node to set an attribute for.