src/main/java/org/xmlet/xsdparser/core/XsdParser.java
private Node getSchemaNode(String filePath) throws IOException, SAXException, ParserConfigurationException {
        Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(filePath);

        doc.getDocumentElement().normalize();

        return doc.getFirstChild();
    }
private Node getSchemaNode(String filePath) throws IOException, SAXException, ParserConfigurationException {
        Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(filePath);

        doc.getDocumentElement().normalize();

        return doc.getFirstChild();
    }
private Node getSchemaNode ( String filePath ) throws IOException , SAXException , ParserConfigurationException { Document doc = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) . parse ( filePath ) ; doc . getDocumentElement ( ) . normalize ( ) ; return doc . getFirstChild ( ) ; }
This function uses DOM to obtain a list of nodes from a XSD file.
@param filePath The path to the XSD file.
@throws IOException If the file parsing throws {@link IOException}.
@throws SAXException if the file parsing throws {@link SAXException}.
@throws ParserConfigurationException If the {@link DocumentBuilderFactory#newDocumentBuilder()} throws
{@link ParserConfigurationException}.
@return A list of nodes that represent the node tree of the XSD file with the path received.
This function uses DOM to obtain a list of nodes from a XSD file .