3.4.6 Parsing the XML document

Parsing the XML document by the parse method of XML parser in which the preparsed object is set up. The following table describes the parse methods for high-speed parse support function:

Note
The operation is not guaranteed if the high-speed parse support function is used with a parse method that is not mentioned in the table.

Table 3-8 Parse methods with which the high-speed parse support function is used

Class nameMethod name
javax.xml.parsers.DocumentBuilderparse(File f)
parse(InputSource is)
parse(InputStream is)
parse(InputStream is, String systemId)
parse(String uri)
javax.xml.parsers.SAXParserparse(File f, DefaultHandler dh)
parse(InputSource is, DefaultHandler dh)
parse(InputStream is, DefaultHandler dh)
parse(InputStream is, DefaultHandler dh, String systemId)
parse(String uri, DefaultHandler dh)
org.xml.sax.XMLReaderparse(InputSource input)
parse(String systemId)