import javax.xml.namespace.QName;
import java.io.File;
import noNamespace.*;
import org.apache.xmlbeans.*;

public class Delete_XmlBeans{

	public static void main (String args[]){

	try{
		Runtime rtObj = Runtime.getRuntime();
		
			 String filePath = args[0];
			 java.io.File inputXMLFile  = new java.io.File(filePath);

			ParentElementDocument PEDoc = ParentElementDocument.Factory.parse(inputXMLFile);
			ParentElementDocument.ParentElement PEObj = PEDoc.getParentElement();
			XmlObject ChildElement1 = PEObj.getChildElement1();
			PEObj.setChildElement1(null);
			
			System.out.println("ChildElement1:" + PEDoc.xmlText());

  		} catch (Exception e) {

		    e.printStackTrace();
  		}

	}
		
}