I have XSD file where i am defining all the XML tags.I am compiling schema to generate all the java class's. I have added new tag to XML and not defined same in XSD. But when i am trying to unmarshall i am getting an error saying "Element not found"
When you unmarshall the xml to generate the java class the Jaxb uses your scema to generate the handlers for each element type and generate a equivalent jave types for that. If you had a new element in xml and not updated in your schema it doen't know to generate a equivalent java type and throws the exception . Please make sure of your all xml elements are matching with the given schema.