axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Michel PATER <pa...@cogenit.fr>
Subject [AXIOM] Uncomment an OMElement
Date Wed, 20 Dec 2006 14:20:51 GMT
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message