comparison src/xmlnode.h @ 10425:9903182f2aac

[gaim-migrate @ 11677] Added a util function to read an xml file and parse it into an xmlnode tree Changed accounts.xml reading to use xmlnode's committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 26 Dec 2004 22:52:52 +0000
parents 108151be77a3
children 703f722d076f
comparison
equal deleted inserted replaced
10424:108151be77a3 10425:9903182f2aac
159 * @param len Address for the size of the string. 159 * @param len Address for the size of the string.
160 * 160 *
161 * @return The node repersented as a string. You must 161 * @return The node repersented as a string. You must
162 * g_free this string when finished using it. 162 * g_free this string when finished using it.
163 */ 163 */
164 gchar *xmlnode_to_str(xmlnode *node, int *len); 164 char *xmlnode_to_str(xmlnode *node, int *len);
165 165
166 /** 166 /**
167 * Returns the node in a string of human readable xml. 167 * Returns the node in a string of human readable xml.
168 * 168 *
169 * @param node The starting node to output. 169 * @param node The starting node to output.
171 * 171 *
172 * @return The node as human readable string including 172 * @return The node as human readable string including
173 * tab and new line characters. You must 173 * tab and new line characters. You must
174 * g_free this string when finished using it. 174 * g_free this string when finished using it.
175 */ 175 */
176 gchar *xmlnode_to_formatted_str(xmlnode *node, int *len); 176 char *xmlnode_to_formatted_str(xmlnode *node, int *len);
177 177
178 /** 178 /**
179 * Creates a node from a string of XML. Calling this on the 179 * Creates a node from a string of XML. Calling this on the
180 * root node of an XML document will parse the entire document 180 * root node of an XML document will parse the entire document
181 * into a tree of nodes, and return the xmlnode of the root. 181 * into a tree of nodes, and return the xmlnode of the root.