O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Classes

DocumentBuilder

The DocumentBuilder class is the main interface into a DOM parser. You create instances of DocumentBuilder with the DocumentBuilderFactory class.

isNamespaceAware
public boolean isNamespaceAware()

Returns true if the parser understands namespaces.

isValidating
public boolean isValidating()

Returns true if the parser validates XML documents.

newDocument
public Document newDocument()

Creates new DOM document. Use this method for creating a document from scratch rather than parsing a text file.

 parse public Document parse(File f) throws SAXException, IOException public Document parse(InputSource source) throws SAXException, IOException public Document parse(InputStream stream) throws SAXException, IOException public ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required