Removing an XML element
minimalism <[email protected]> Fri, 13 Aug 2010 14:29:16 -0700 (PDT)
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <[email protected]> |
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.