Class XmlUtils.NoXmlnsFilteringParser

    • Constructor Detail

      • NoXmlnsFilteringParser

        public NoXmlnsFilteringParser​(XmlUtils.UnmarshallerFactory xmlUnmarshallerFactory)
                               throws javax.xml.bind.JAXBException
        Creates instance from JAXB unmarshaller used for parsing XML documents
        Parameters:
        xmlUnmarshallerFactory - JAXB unmarshaller factory
        Throws:
        javax.xml.bind.JAXBException
    • Method Detail

      • parse

        public Object parse​(InputSource input)
                     throws javax.xml.bind.JAXBException
        Description copied from interface: XmlUtils.XmlnsFilteringParser
        Unmarshal XML data from the specified SAX InputSource and return the resulting content tree.
        Specified by:
        parse in interface XmlUtils.XmlnsFilteringParser
        Parameters:
        input - the input source to unmarshal XML data from
        Returns:
        the newly created root object of the java content tree
        Throws:
        javax.xml.bind.JAXBException - If any unexpected errors occur while unmarshalling
      • parse

        public Object parse​(URL url)
                     throws javax.xml.bind.JAXBException
        Description copied from interface: XmlUtils.XmlnsFilteringParser
        Unmarshal XML data from the specified URL and return the resulting content tree.
        Specified by:
        parse in interface XmlUtils.XmlnsFilteringParser
        Parameters:
        url - the URL to unmarshal XML data from
        Returns:
        the newly created root object of the java content tree
        Throws:
        javax.xml.bind.JAXBException - If any unexpected errors occur while unmarshalling