builder.mapFactoryToNamespace(factory, namespaceUri);
}
public Object unmarshal(String xmlFile) throws JBossXBException
{
DocumentBindingStack docBinding = DocumentBindingFactory.newInstance()
.newDocumentBindingStack()
.push(RuntimeDocumentBinding.class);
BindingCursor cursor = BindingCursor.Factory.newCursor(docBinding);
builder.init(new MetadataDrivenObjectModelFactory(), null, cursor);
parser.parse(xmlFile, builder);