How to delete a child element in Java beans style of handling XML document in an XMLBeans based Java application? I can't find way to deleting a child element using Java types created by XMLBeans based on the XML Schema. I know of doing it using XMLCursor interface.
I have attached XML Schema SchemaDel.xsd, its input data InputDel.xml, and XMLBeans java application Delete_XmlBeans.java. This Java application logic wants to remove the "childElement1". However, output shows that childeElement1 is set to nil with xsi:nil="true". I was hoping for actual output to have "childElement1" disappeared completely. How can I do that? Thanks in advance. Ritesh
SchemaDel.xsd
Description: Binary data
<ParentElement xsi:noNamespaceSchemaLocation="SchemaDel.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ChildElement1>CE1</ChildElement1> <ChildElement2>SomeText</ChildElement2> </ParentElement>
Delete_XmlBeans.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: dev-h...@xmlbeans.apache.org