[xml] xmlNodeSetContent that doesn't wipe out child elements?

Date view Thread view Subject view Author view

From: Harry Blundell (harry@halcyoninc.com)
Date: Sat Oct 21 2000 - 16:58:33 EDT


Hi,

My reading of xmlNodeSetContent is that it wipes out node->content, and
all of node's child nodes, and then acts differently to save the new
content depending on whether the node is a comment (in which case it uses
node->content) or an element (in which case it creates child nodes to
hold the new content.

This doesn't work so well for elements that have mixed content (both text
content, and child elements). Is there a function that replaces the
content of an element, while leaving its child elements alone, or do I
have to write one?

Thanks,

Harry
----------------------------------------------------------------------
Harry Blundell Halcyon Inc. URL: http://www.HalcyonInc.com
2300 Yonge St., Suite 1801, Box 2419, Toronto ON M4P 1E4, Canada.
PHONE: 416-932-4631 FAX: 416-932-4711 EMAIL: harry@HalcyonInc.com

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Oct 21 2000 - 17:43:22 EDT