Parsing XSD and getting nested elements
问题 After going through this page, I wrote the following code to parse an XSD file. However I only get the root element, and I am lost so as to how to get the nested elements inside it. Code: XMLSchemaLoader loader = new XMLSchemaLoader(); XSModel model = loader.loadURI(url.toURI().toString()); XSNamedMap map = model.getComponents(XSConstants.ELEMENT_DECLARATION); //returns the root component if(map!=null ){ for (int j=0; j<map.getLength(); j++) { String name = map.item(j).getName(); //returns