Dynamic explore xsd information


I need to extract schema information from xsd files. However when trying to use scala.xml.XML, noticing XML.loadFile(path_to_xsd) doesn’t solve include problem. For instance, primary.xsd includes referred1.xsd, but XML.loadFile(path_to_primary_xsd) doesn’t automatically resolve dependencies to referred1.xsd. Is there any lib or any recommendation for operating on extracting xsd data?

(Searching on the old google user group for scala user doesn’t find answer as well)



Perhaps this can help. https://github.com/eed3si9n/scalaxb There are also Java libs that can help if this doesn’t.


I eventually use Apache XmlSchema (https://ws.apache.org/xmlschema/) to extract those information.