Microsoft SDK for Java

Parser Class Methods

The Parser class contains the following methods:

createOutputStream creates an output stream that best matches the XML data format found during parsing.
loadDTD loads a DTD given its URL and namespace.
parse parses the XML document pointed to by the given URL and creates the corresponding XML document hierarchy.
report reports errors to the specified output stream including parsing context and stack trace where the error occurred.
setShortEndTags determines whether to allow short end tags.

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