Microsoft SDK for Java

parse

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)

parse(URL url, 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.

Syntax

public final void parse(URL url, ElementFactory factory, DTD dtd, Element root, boolean caseInsensitive, boolean loadExt) throws ParseException;

Parameters

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.

Exceptions

com.ms.xml.parser.ParseException if syntax or other errors are encountered.

parse(InputStream in, ElementFactory factory, DTD dtd, Element root, boolean caseInsensitive, boolean loadExt)

Parses the XML from the given input stream.

Syntax

final public void parse(InputStream in, ElementFactory factory, DTD dtd, Element root, boolean caseInsensitive, boolean loadExt) throws ParseException;

Parameters

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.

Exceptions

com.ms.xml.parser.ParseException if syntax or other errors are encountered.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.