- tnode = xmlNewChild (doc->children, NULL, (xmlChar *)"toolbar", NULL);
- xmlSetProp (tnode, (xmlChar *)"name", (xmlChar *)toolbar->name);
+ tnode = xmlNewChild (doc->children, NULL, (const xmlChar*) "toolbar", NULL);
+ xmlSetProp (tnode, (const xmlChar*) "name", (const xmlChar*) toolbar->name);