I searched the forums for a solution to the problem I am having, but I could
not find anything that would work for me. I have an xml file that has nested
elements. A very simplified example would be:
<code><pre>
<body>
    <paragraph font="Verdana">
        <text size = "2">Line1</text>
        <text size = "1">Line2</text>
        <text>Line3</text>
    </paragraph>
</body>
</pre></code>

I want to remove line 2 above. I do this:

<code><pre>
body.getParagraphArray(0).removeText(1);
</pre></code>

This did not work. Am I missing something?

Thanks for your help in advance.
-- 
View this message in context: 
http://old.nabble.com/Removing-an-XML-element-tp29433197p29433197.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org

Reply via email to