title: how to Convert org.apache.xmlbeans.XmlObject to my customJavaObject
body: <p>I am having a method where I am receiving XmlObject as an argument in the method and now I want to convert it into the java corresponding java object , that I have to pass in other webservice.</p>
  
  <p>I have tried all the possible ways but not able to get it.</p>
  
  <p>Code :</p>
  
  <pre><code>public static boolean updateAddress_V2(XmlObject xmlObject) throws XmlException{
           AlarsDataService dataService=new AlarsDataService();
           CustomerV2 customerV2=CustomerV2.Factory.parse(xmlObject.toString());
           com.alars.osb.java.customer.CustomerV2.Customer customerXML=customerV2.getCustomer();
  }
  </code></pre>
  
  <p>but when I am checking customerXML is coming as null.</p>
  
  <p>Here is the XMLObject string value :</p>
  
  <pre><code> &lt;Customer_V2 xmlns="http://www.alars.com/osb/java/Customer"&gt;
    &lt;Customer&gt;
      &lt;customerId&gt;4&lt;/customerId&gt;
      &lt;driverLicense&gt;XBRT245&lt;/driverLicense&gt;
      &lt;firstName&gt;ALEX&lt;/firstName&gt;
      &lt;lastName&gt;CINTRA&lt;/lastName&gt;
      &lt;dob&gt;21-11-1986&lt;/dob&gt;
      &lt;addressLine1&gt;10 Florence St&lt;/addressLine1&gt;
      &lt;city&gt;BOSTON&lt;/city&gt;
      &lt;zipCode&gt;02148&lt;/zipCode&gt;
    &lt;/Customer&gt;
  &lt;/Customer_V2&gt;
  </code></pre>
  
  <p>Customer XSD :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.alars.com/osb/java/Customer"
      xmlns:tns="http://www.alars.com/osb/java/Citation" elementFormDefault="qualified"&gt;
      &lt;complexType name="Customer"&gt;
          &lt;sequence&gt;
              &lt;element name="customerId" type="long"&gt;&lt;/element&gt;
              &lt;element name="driverLicense" type="string"&gt;&lt;/element&gt;
              &lt;element name="firstName" type="string"&gt;&lt;/element&gt;
              &lt;element name="lastName" type="string"&gt;&lt;/element&gt;
              &lt;element name="dob" type="date"&gt;&lt;/element&gt;
              &lt;element name="addressLine1" type="string"&gt;&lt;/element&gt;
              &lt;element name="city" type="string"&gt;&lt;/element&gt;
              &lt;element name="zipCode" type="string"&gt;&lt;/element&gt;
          &lt;/sequence&gt;
      &lt;/complexType&gt;
  
      &lt;complexType name="Customer_V2"&gt;
          &lt;sequence&gt;
              &lt;element name="Customer"&gt;
                  &lt;complexType&gt;
                      &lt;sequence&gt;
                          &lt;element name="customerId" type="long"&gt;&lt;/element&gt;
                          &lt;element name="driverLicense" type="string"&gt;&lt;/element&gt;
                          &lt;element name="firstName" type="string"&gt;&lt;/element&gt;
                          &lt;element name="lastName" type="string"&gt;&lt;/element&gt;
                          &lt;element name="dob" type="date"&gt;&lt;/element&gt;
                          &lt;element name="addressLine1" type="string"&gt;&lt;/element&gt;
                          &lt;element name="city" type="string"&gt;&lt;/element&gt;
                          &lt;element name="zipCode" type="string"&gt;&lt;/element&gt;
                      &lt;/sequence&gt;
                  &lt;/complexType&gt;
              &lt;/element&gt;
          &lt;/sequence&gt;
      &lt;/complexType&gt;
  &lt;/schema&gt;
  </code></pre>
  
  <p>Any advise folks.. how to achieve this ??</p>