assertNotNull("Schema Model is null?", xsmodel);
// Lets get the global element called "root"
XSElementDeclaration xe = xsmodel.getElementDeclaration("root", "http://org.jboss.ws/anonymous/types");
assertNotNull("Global element is not null?", xe);
checkSchema(DOMUtils.parse(xsmodel.serialize()));
XSElementDeclaration decl = xsmodel.getElementDeclaration(">root>inside", "http://org.jboss.ws/anonymous/types");
assertEquals(decl.getName(), "inside");
XSTypeDefinition defi = xsmodel.getTypeDefinition(">>root>inside", "http://org.jboss.ws/anonymous/types");
assertEquals(defi.getTypeCategory(), XSTypeDefinition.COMPLEX_TYPE);