libpurple/xmlnode.h

changeset 32322
5c1dd6d9d57f
parent 32321
ae17a89ef666
child 32554
0d844fac6679
equal deleted inserted replaced
32321:ae17a89ef666 32322:5c1dd6d9d57f
241 * @return The default namespace of this node 241 * @return The default namespace of this node
242 */ 242 */
243 const char *xmlnode_get_default_namespace(const xmlnode *node); 243 const char *xmlnode_get_default_namespace(const xmlnode *node);
244 244
245 /** 245 /**
246 * Returns the defined namespace for a prefix.
247 *
248 * @param node The node from which to start the search.
249 * @param prefix The prefix for which to return the associated namespace.
250 * @return The namespace for this prefix.
251 */
252 const char *xmlnode_get_prefix_namespace(const xmlnode *node, const char *prefix);
253
254 /**
246 * Sets the prefix of a node 255 * Sets the prefix of a node
247 * 256 *
248 * @param node The node to qualify 257 * @param node The node to qualify
249 * @param prefix The prefix of the node 258 * @param prefix The prefix of the node
250 */ 259 */
255 * 264 *
256 * @param node The node to get the prefix from 265 * @param node The node to get the prefix from
257 * @return The prefix of this node 266 * @return The prefix of this node
258 */ 267 */
259 const char *xmlnode_get_prefix(const xmlnode *node); 268 const char *xmlnode_get_prefix(const xmlnode *node);
269
270 /**
271 * Remove all element prefixes from an xmlnode tree. The prefix's
272 * namespace is transformed into the default namespace for an element.
273 *
274 * Note that this will not necessarily remove all prefixes in use
275 * (prefixed attributes may still exist), and that this usage may
276 * break some applications (SOAP / XPath apparently often rely on
277 * the prefixes having the same name.
278 *
279 * @param node The node from which to strip prefixes
280 */
281 void xmlnode_strip_prefixes(xmlnode *node);
260 282
261 /** 283 /**
262 * Gets the parent node. 284 * Gets the parent node.
263 * 285 *
264 * @param child The child node. 286 * @param child The child node.

mercurial