New issue 26 by mathieu.carbou: Add set* methods for text and cdata
http://code.google.com/p/xmltool/issues/detail?id=26
Actually tehre are only get* and add* methods but we need also a method to
replace existing text / cdata nodes in the current node
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Here is what I went with until this issue is resolved.
Node node = (Node) doc.getCurrentTag();
Node textNode = node.getChildNodes().item(0);
if (textNode == null) // the case when the node is empty
{
node.setTextContent(textValue);
}
else
{
textNode.setTextContent(textValue);
Comment #2 on issue 26 by mathieu.carbou: Add set* methods for text and
cdata
http://code.google.com/p/xmltool/issues/detail?id=26
Hi,
I've added several set* methods in the release 2.9. It should be synced to
maven
central repo in 1-2 days max.
Cheers,
Mat'