title: Parsing XML at RunTime based on XSD with JAXB 2.x
body: <p>Have a requirement so want to check its feasibility.We are using JAXB 2.x for unmarshling XML in to out existing POJO classes.below is the process we are following..</p>
  
  <ol>
  <li>Based on the XSD provided we have already created required classes using JAXB utility.</li>
  <li>On Run time we are passing only XML file and we first validating the XML with the preexisting XSD and if success than will move ahead with the Unmarshling.</li>
  <li>For XML creation same process but in reverse order.</li>
  </ol>
  
  <p>Now there is one requirement so the client want that they can pass XML and XSD to the method being developed and this method should hand over the common object as return by parsing that XML and later on they will handle the process of mapping that generic Object with the specific classes.</p>
  
  <p>My question is,Is it possible in Jaxb 2.x that based on the XSD supplied it will first create required classes on the fly and than will parse XML and hand over the result to the client module so they can do the mapping work or is there any way to achieve that functionality??</p>
  
  <p>Thanks in advance</p>