Hi all,
I would like to edit an XML file and uncomment an element. For this I
used the following code :
OMNode child = elt.getFirstOMChild();
while(child != null) {
if(child instanceof OMComment) {
OMComment omc = (OMComment)child;
OMElement doc =
builder.getDocumentElement();
try {
doc = (OMElement)doc.detach();
elt.addChild(doc);
child.insertSiblingAfter(doc);
System.out.println(elt.toString());
On the elt.toString() I've got a outOfMemory exception :
Unhandled event loop exception
Reason:
Java heap space
Does somebody have an idea on how to proceed to uncomment an OMNode ?
Thanks
--
Cogenit
Cogenit http://www.xcarecrows.com
53 rue Sainte Anne
75002 Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]