| Package | Description | 
|---|---|
| java.beans | Contains classes related to developing
beans -- components
based on the JavaBeans™ architecture. | 
| javax.xml.bind | 
        Provides a runtime binding framework for client applications including
        unmarshalling, marshalling, and validation capabilities. | 
| javax.xml.bind.helpers | 
        JAXB Provider Use Only: Provides partial default implementations for 
        some of the javax.xml.bind interfaces. | 
| javax.xml.parsers | 
                Provides classes allowing the processing of XML documents. | 
| javax.xml.transform.sax | This package implements SAX2-specific transformation APIs. | 
| javax.xml.xpath | This package provides an object-model neutral API for the
evaluation of XPath expressions and access to the evaluation
environment. | 
| org.xml.sax |  This package provides the core SAX APIs. | 
| org.xml.sax.ext | 
This package contains interfaces to SAX2 facilities that
conformant SAX drivers won't necessarily support. | 
| org.xml.sax.helpers | This package contains "helper" classes, including
support for bootstrapping SAX-based applications. | 
| Constructor and Description | 
|---|
| XMLDecoder(InputSource is)Creates a new decoder to parse XML archives
 created by the  XMLEncoderclass. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | Unmarshaller. unmarshal(InputSource source)Unmarshal XML data from the specified SAX InputSource and return the
 resulting content tree. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | AbstractUnmarshallerImpl. unmarshal(InputSource source) | 
| protected abstract Object | AbstractUnmarshallerImpl. unmarshal(XMLReader reader,
         InputSource source)Unmarshals an object by using the specified XMLReader and the InputSource. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Document | DocumentBuilder. parse(InputSource is)Parse the content of the given input source as an XML document
 and return a new DOM  Documentobject. | 
| void | SAXParser. parse(InputSource is,
     DefaultHandler dh)Parse the content given  InputSourceas XML using the specifiedDefaultHandler. | 
| void | SAXParser. parse(InputSource is,
     HandlerBase hb)Parse the content given  InputSourceas XML using the specifiedHandlerBase. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputSource | SAXSource. getInputSource()Get the SAX InputSource to be used for the Source. | 
| static InputSource | SAXSource. sourceToInputSource(Source source)Attempt to obtain a SAX InputSource object from a Source
 object. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | SAXSource. setInputSource(InputSource inputSource)Set the SAX InputSource to be used for the Source. | 
| Constructor and Description | 
|---|
| SAXSource(InputSource inputSource)Create a  SAXSource, using a SAXInputSource. | 
| SAXSource(XMLReader reader,
         InputSource inputSource)Create a  SAXSource, using anXMLReaderand a SAX InputSource. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | XPathExpression. evaluate(InputSource source)Evaluate the compiled XPath expression in the context of the specified  InputSourceand return the result as aString. | 
| Object | XPathExpression. evaluate(InputSource source,
        QName returnType)Evaluate the compiled XPath expression in the context of the specified  InputSourceand return the result as the
 specified type. | 
| String | XPath. evaluate(String expression,
        InputSource source)Evaluate an XPath expression in the context of the specified  InputSourceand return the result as aString. | 
| Object | XPath. evaluate(String expression,
        InputSource source,
        QName returnType)Evaluate an XPath expression in the context of the specified  InputSourceand return the result as the specified type. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputSource | HandlerBase. resolveEntity(String publicId,
             String systemId)Deprecated.  Resolve an external entity. | 
| InputSource | EntityResolver. resolveEntity(String publicId,
             String systemId)Allow the application to resolve external entities. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | XMLReader. parse(InputSource input)Parse an XML document. | 
| void | Parser. parse(InputSource source)Deprecated.  Parse an XML document. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputSource | DefaultHandler2. getExternalSubset(String name,
                 String baseURI)Tells the parser that if no external subset has been declared
 in the document text, none should be used. | 
| InputSource | EntityResolver2. getExternalSubset(String name,
                 String baseURI)Allows applications to provide an external subset for documents
 that don't explicitly define one. | 
| InputSource | DefaultHandler2. resolveEntity(String publicId,
             String systemId)Invokes
  EntityResolver2.resolveEntity()with null entity name and base URI. | 
| InputSource | DefaultHandler2. resolveEntity(String name,
             String publicId,
             String baseURI,
             String systemId)Tells the parser to resolve the systemId against the baseURI
 and read the entity text from that resulting absolute URI. | 
| InputSource | EntityResolver2. resolveEntity(String name,
             String publicId,
             String baseURI,
             String systemId)Allows applications to map references to external entities into input
 sources, or tell the parser it should use conventional URI resolution. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputSource | DefaultHandler. resolveEntity(String publicId,
             String systemId)Resolve an external entity. | 
| InputSource | XMLFilterImpl. resolveEntity(String publicId,
             String systemId)Filter an external entity resolution. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | XMLFilterImpl. parse(InputSource input)Parse a document. | 
| void | ParserAdapter. parse(InputSource input)Parse an XML document. | 
| void | XMLReaderAdapter. parse(InputSource input)Parse the document. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.