The parse method of the Parser class contains the following signatures:
parse(URL url, ElementFactory factory, DTD dtd, Element root, boolean caseInsensitive, boolean loadExt)
parse(InputStream in, ElementFactory factory, DTD dtd, Element root, boolean caseInsensitive, boolean loadExt)
Parses the XML document pointed to by the given URL and creates the corresponding XML document hierarchy.
public final void parse(URL url, ElementFactory factory, DTD dtd, Element root, boolean caseInsensitive, boolean loadExt) throws ParseException;
url | The URL address of the XML document to parse. |
factory | The element factory used to create XML Element objects during parsing. |
dtd | The object that the parser stores DTD information in. |
root | The starting root node that children are added to during parsing. |
caseInsensitive | Specifies whether the document is case-insensitive. |
loadExt | Specifies whether to load external DTDs. |
com.ms.xml.parser.ParseException if syntax or other errors are encountered.
Parses the XML from the given input stream.
final public void parse(InputStream in, ElementFactory factory, DTD dtd, Element root, boolean caseInsensitive, boolean loadExt) throws ParseException;
in | The input stream containing XML data to parse. |
factory | The element factory used to create XML Element objects during parsing. |
dtd | The object that the parser stores DTD information in. |
root | The starting root node that children are added to during parsing. |
caseInsensitive | Specifies whether the document is case-insensitive. |
loadExt | Specifies whether to load external DTDs. |
com.ms.xml.parser.ParseException if syntax or other errors are encountered.