[Libxmlplusplus-general] write() broken, maybe fixed



The change to Node::write() just before the 0.17 release broke that
method, leading to segfaults in some situations, and at least not
writing out all child nodes in the dom_build example.

The cvs version should be fixed. If it works for everyone then we need a
new release:

2002-12-16  Murray Cumming  <murrayc usa net>

	* libxml++/node.cc: write():
	- Don't set the node->type directly. Let
	xmlNodeSetContent take care of adding a suitable child node. This
	was leading to segfaults when write() later tried to add a child node
	to a text node.
	- Throw internal_error exception when xmlNewChild returns NULL.


-- 
Murray Cumming
murray usa net
www.murrayc.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]