private Schema getXmlSchema10 ( ) throws SAXException { final SchemaFactory schemaFactory = SchemaFactory . newInstance ( XMLConstants . W3C_XML_SCHEMA_NS_URI ) ; // Use local copies of schemas rather than resolving from the net. It's faster, and less prone to errors. final Source [ ] schemaFiles = { new StreamSource ( this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "spdx.xsd" ) ) , new StreamSource ( this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "bom-1.0.xsd" ) ) } ; return schemaFactory . newSchema ( schemaFiles ) ; }
Returns the CycloneDX XML Schema from the specifications XSD .