Hi, the following statement seems somewhat slow:
xmlNodePtr myNode; xmlChar *myText; ... xmlNewChild(myNode, NULL, BAD_CAST "description", BAD_CAST myText); takes about 25 ms when myText is 50kB; profiling suggests it wastes much time using "xmlStrlen()". the comparable statements xmlNodePtr newNode=xmlNewChild(myNode, NULL, BAD_CAST "description", NULL); xmlNodeAddContent(newNode, BAD_CAST myText); are much faster, using less than 1 ms with the same text. I haven't found any hint about whether this was a known problem and has been fixed in later versions. Thanks Dominik _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml