mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/xsd/XsdParser.java
private void parseFile(final File xsdFile) throws ParserConfigurationException, 
            SAXException, IOException, ClassNotFoundException, JaxbProtoConvertException
    {
        final Document document = m_DocBuilder.parse(xsdFile);
        final Element baseElement = document.getDocumentElement();
        baseElement.normalize();
        
        final String namespace = baseElement.getAttribute("targetNamespace");
        XsdNamespace xsdNamespace = m_Model.getNamespacesMap().get(namespace);
        if (xsdNamespace == null)
        {
            xsdNamespace = new XsdNamespace(m_Model);
            m_Model.getNamespacesMap().put(namespace, xsdNamespace);
        }
        
        final NodeList childList = baseElement.getChildNodes();

        traverseNodes(childList, baseElement, xsdNamespace, null, null, xsdFile, 1);
    }
/**
     * Method that parses a single XSD file and adds all types found to the specified XSD model.
     * 
     * @param xsdFile
     *      XSD file to be parsed.
     * @throws ParserConfigurationException
     *      Thrown if there is a configuration exception occurs with the parser.
     * @throws SAXException
     *      Thrown if an exception occurs parsing the XSD file.
     * @throws IOException
     *      Thrown if an exception occurs reading the XSD file.
     * @throws ClassNotFoundException
     *      Thrown if an associated JAXB class cannot be found for a type in the XSD file.
     * @throws JaxbProtoConvertException
     *      Thrown if a duplicate overridden ID is encountered.
     */
Method that parses a single XSD file and adds all types found to the specified XSD model.

@param xsdFile
XSD file to be parsed.
@throws ParserConfigurationException
Thrown if there is a configuration exception occurs with the parser.
@throws SAXException
Thrown if an exception occurs parsing the XSD file.
@throws IOException
Thrown if an exception occurs reading the XSD file.
@throws ClassNotFoundException
Thrown if an associated JAXB class cannot be found for a type in the XSD file.
@throws JaxbProtoConvertException
Thrown if a duplicate overridden ID is encountered.
Method that parses a single XSD file and adds all types found to the specified XSD model . @param xsdFile XSD file to be parsed . @throws ParserConfigurationException Thrown if there is a configuration exception occurs with the parser . @throws SAXException Thrown if an exception occurs parsing the XSD file . @throws IOException Thrown if an exception occurs reading the XSD file . @throws ClassNotFoundException Thrown if an associated JAXB class cannot be found for a type in the XSD file . @throws JaxbProtoConvertException Thrown if a duplicate overridden ID is encountered .
private void parseFile(final File xsdFile) throws ParserConfigurationException, 
            SAXException, IOException, ClassNotFoundException, JaxbProtoConvertException
    {
        final Document document = m_DocBuilder.parse(xsdFile);
        final Element baseElement = document.getDocumentElement();
        baseElement.normalize();
        final String namespace = baseElement.getAttribute("targetNamespace");
        XsdNamespace xsdNamespace = m_Model.getNamespacesMap().get(namespace);
        if (xsdNamespace == null)
        {
            xsdNamespace = new XsdNamespace(m_Model);
            m_Model.getNamespacesMap().put(namespace, xsdNamespace);
        }
        final NodeList childList = baseElement.getChildNodes();
        traverseNodes(childList, baseElement, xsdNamespace, null, null, xsdFile, 1);
    }
private void parseFile ( final File xsdFile ) throws ParserConfigurationException , SAXException , IOException , ClassNotFoundException , JaxbProtoConvertException { final Document document = m_DocBuilder . parse ( xsdFile ) ; final Element baseElement = document . getDocumentElement ( ) ; baseElement . normalize ( ) ; final String namespace = baseElement . getAttribute ( "targetNamespace" ) ; XsdNamespace xsdNamespace = m_Model . getNamespacesMap ( ) . get ( namespace ) ; if ( xsdNamespace == null ) { xsdNamespace = new XsdNamespace ( m_Model ) ; m_Model . getNamespacesMap ( ) . put ( namespace , xsdNamespace ) ; } final NodeList childList = baseElement . getChildNodes ( ) ; traverseNodes ( childList , baseElement , xsdNamespace , null , null , xsdFile , 1 ) ; }
Method that parses a single XSD file and adds all types found to the specified XSD model.
Method that parses a single XSD file and adds all types found to the specified XSD model .