Package | Description |
---|---|
org.dom4j |
Defines the XML Document Object Model in Java interfaces together
with some helper classes.
|
org.dom4j.datatype |
An implementation of the dom4j API which supports the
XML Schema Data Types specification.
|
org.dom4j.io |
Provides input and output via SAX and DOM together with writing dom4j
objects to streams as XML text.
|
org.dom4j.rule | |
org.dom4j.util |
A collection of utility classes for the dom4j API.
|
Modifier and Type | Method and Description |
---|---|
Document |
Document.addComment(String comment)
Adds a new
Comment node with the given text to this
branch. |
Document |
Document.addDocType(String name,
String publicId,
String systemId)
Adds a DOCTYPE declaration to this document
|
Document |
Document.addProcessingInstruction(String target,
Map data)
Adds a processing instruction for the given target
|
Document |
Document.addProcessingInstruction(String target,
String text)
Adds a processing instruction for the given target
|
static Document |
DocumentHelper.createDocument() |
Document |
DocumentFactory.createDocument() |
static Document |
DocumentHelper.createDocument(Element rootElement) |
Document |
DocumentFactory.createDocument(Element rootElement) |
Document |
DocumentFactory.createDocument(String encoding)
DOCUMENT ME!
|
Document |
Node.getDocument()
getDocument returns the Document that this
Node is part of if this node supports the parent
relationship. |
static Document |
DocumentHelper.parseText(String text)
parseText parses the given text as an XML document and
returns the newly created Document. |
Modifier and Type | Method and Description |
---|---|
void |
Node.setDocument(Document document)
setDocument sets the document of this node if the parent
relationship is supported or does nothing if the parent relationship is
not supported. |
void |
VisitorSupport.visit(Document document) |
void |
Visitor.visit(Document document)
Visits the given
Document |
Modifier and Type | Method and Description |
---|---|
void |
SchemaParser.build(Document schemaDocument)
Parses the given schema document
|
void |
SchemaParser.build(Document schemaDocument,
Namespace namespace) |
void |
DatatypeDocumentFactory.loadSchema(Document schemaDocument)
Loads the given XML Schema document into this factory so schema-aware
Document, Elements and Attributes will be created by this factory.
|
void |
DatatypeDocumentFactory.loadSchema(Document schemaDocument,
Namespace targetNamespace) |
protected void |
DatatypeDocumentFactory.loadSchema(Document document,
String schemaInstanceURI) |
protected void |
DatatypeDocumentFactory.loadSchema(Document document,
String schemaInstanceURI,
Namespace namespace) |
Modifier and Type | Method and Description |
---|---|
protected Document |
SAXContentHandler.createDocument()
DOCUMENT ME!
|
protected Document |
DOMReader.createDocument() |
Document |
SAXContentHandler.getDocument()
DOCUMENT ME!
|
Document |
DocumentSource.getDocument()
DOCUMENT ME!
|
Document |
DocumentResult.getDocument()
DOCUMENT ME!
|
Document |
SAXModifier.modify(File source)
|
Document |
SAXModifier.modify(InputSource source)
Reads a Document from the given
InputSource and
writes it to the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(InputStream source)
Reads a Document from the given
InputStream and writes it
to the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(InputStream source,
String systemId)
Reads a Document from the given
InputStream and writes it
to the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(Reader source)
|
Document |
SAXModifier.modify(Reader source,
String systemId)
|
Document |
SAXModifier.modify(String source)
Reads a Document from the given URL or filename and writes it to the
specified
XMLWriter using SAX. |
Document |
SAXModifier.modify(URL source)
|
protected Document |
XPPReader.parseDocument() |
protected Document |
XPP3Reader.parseDocument() |
Document |
XPPReader.read(char[] text)
Reads a Document from the given array of characters
|
Document |
XPP3Reader.read(char[] text)
Reads a Document from the given array of characters
|
Document |
DOMReader.read(Document domDocument) |
Document |
SAXReader.read(File file)
Reads a Document from the given
File |
Document |
XPPReader.read(File file)
Reads a Document from the given
File |
Document |
XPP3Reader.read(File file)
Reads a Document from the given
File |
Document |
SAXReader.read(InputSource in)
Reads a Document from the given
InputSource using SAX |
Document |
SAXReader.read(InputStream in)
Reads a Document from the given stream using SAX
|
Document |
XPPReader.read(InputStream in)
Reads a Document from the given stream
|
Document |
XPP3Reader.read(InputStream in)
Reads a Document from the given stream
|
Document |
SAXReader.read(InputStream in,
String systemId)
Reads a Document from the given stream using SAX
|
Document |
XPPReader.read(InputStream in,
String systemID)
Reads a Document from the given stream
|
Document |
XPP3Reader.read(InputStream in,
String systemID)
Reads a Document from the given stream
|
Document |
SAXReader.read(Reader reader)
Reads a Document from the given
Reader using SAX |
Document |
XPPReader.read(Reader reader)
Reads a Document from the given
Reader |
Document |
XPP3Reader.read(Reader reader)
Reads a Document from the given
Reader |
Document |
SAXReader.read(Reader reader,
String systemId)
Reads a Document from the given
Reader using SAX |
Document |
XPPReader.read(Reader reader,
String systemID)
Reads a Document from the given
Reader |
Document |
XPP3Reader.read(Reader reader,
String systemID)
Reads a Document from the given
Reader |
Document |
SAXReader.read(String systemId)
Reads a Document from the given URL or filename using SAX.
|
Document |
XPPReader.read(String systemID)
Reads a Document from the given URL or filename.
|
Document |
XPP3Reader.read(String systemID)
Reads a Document from the given URL or filename.
|
Document |
SAXReader.read(URL url)
Reads a Document from the given
URL using SAX |
Document |
XPPReader.read(URL url)
Reads a Document from the given
URL |
Document |
XPP3Reader.read(URL url)
Reads a Document from the given
URL |
Document |
STAXEventReader.readDocument(InputStream is)
Constructs a StAX event stream from the provided I/O stream and reads a
DOM4J document from it.
|
Document |
STAXEventReader.readDocument(InputStream is,
String systemId)
Constructs a StAX event stream from the provided I/O stream and reads a
DOM4J document from it.
|
Document |
STAXEventReader.readDocument(Reader reader)
Constructs a StAX event stream from the provided I/O character stream and
reads a DOM4J document from it.
|
Document |
STAXEventReader.readDocument(Reader reader,
String systemId)
Constructs a StAX event stream from the provided I/O character stream and
reads a DOM4J document from it.
|
Document |
STAXEventReader.readDocument(XMLEventReader reader)
Reads a DOM4J
Document from the provided stream. |
Modifier and Type | Method and Description |
---|---|
protected Document |
DOMWriter.createDomDocument(Document document) |
protected Document |
DOMWriter.createDomDocument(Document document,
DOMImplementation domImpl) |
EndDocument |
STAXEventWriter.createEndDocument(Document doc)
Constructs a STAX
EndDocument event from a DOM4J Document . |
StartDocument |
STAXEventWriter.createStartDocument(Document doc)
Constructs a STAX
StartDocument event from a DOM4J Document . |
protected void |
SAXWriter.documentLocator(Document document)
The
Locator is only really useful when parsing a
textual document as its main purpose is to identify the line and column
number. |
protected void |
SAXWriter.dtdHandler(Document document)
We do not yet support DTD or XML Schemas so this method does nothing
right now.
|
protected void |
SAXWriter.entityResolver(Document document) |
void |
DocumentSource.setDocument(Document document)
Sets the document used as the JAXP
SAXSource |
void |
SAXValidator.validate(Document document)
Validates the given
Document by writing it to a validating
SAX Parser. |
Document |
DOMWriter.write(Document document) |
void |
SAXWriter.write(Document document)
Generates SAX events for the given Document and all its content
|
void |
XMLWriter.write(Document doc)
This will print the
Document to the current Writer. |
Document |
DOMWriter.write(Document document,
DOMImplementation domImpl) |
void |
STAXEventWriter.writeDocument(Document doc)
Writes a DOM4J
Document node, and all its contents, to the
stream. |
Constructor and Description |
---|
DocumentSource(Document document)
|
Modifier and Type | Method and Description |
---|---|
void |
Mode.applyTemplates(Document document) |
Modifier and Type | Method and Description |
---|---|
Document |
ProxyDocumentFactory.createDocument() |
Document |
ProxyDocumentFactory.createDocument(Element rootElement) |
Modifier and Type | Method and Description |
---|---|
int |
NodeComparator.compare(Document n1,
Document n2) |
Copyright © 2005 MetaStuff Ltd. All Rights Reserved. Hosted by