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(java.lang.String comment)
Adds a new
Comment node with the given text to this
branch. |
Document |
Document.addDocType(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Adds a DOCTYPE declaration to this document
|
Document |
Document.addProcessingInstruction(java.lang.String target,
java.util.Map data)
Adds a processing instruction for the given target
|
Document |
Document.addProcessingInstruction(java.lang.String target,
java.lang.String text)
Adds a processing instruction for the given target
|
Document |
DocumentFactory.createDocument() |
static Document |
DocumentHelper.createDocument() |
Document |
DocumentFactory.createDocument(Element rootElement) |
static Document |
DocumentHelper.createDocument(Element rootElement) |
Document |
DocumentFactory.createDocument(java.lang.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(java.lang.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 |
Visitor.visit(Document document)
Visits the given
Document |
void |
VisitorSupport.visit(Document 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,
java.lang.String schemaInstanceURI) |
protected void |
DatatypeDocumentFactory.loadSchema(Document document,
java.lang.String schemaInstanceURI,
Namespace namespace) |
Modifier and Type | Method and Description |
---|---|
protected Document |
DOMReader.createDocument() |
protected Document |
SAXContentHandler.createDocument()
DOCUMENT ME!
|
Document |
DocumentSource.getDocument()
DOCUMENT ME!
|
Document |
SAXContentHandler.getDocument()
DOCUMENT ME!
|
Document |
DocumentResult.getDocument()
DOCUMENT ME!
|
Document |
SAXModifier.modify(java.io.File source)
Reads a Document from the given
File and writes it to the
specified XMLWriter using SAX. |
Document |
SAXModifier.modify(org.xml.sax.InputSource source)
Reads a Document from the given
InputSource and
writes it to the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(java.io.InputStream source)
Reads a Document from the given
InputStream and writes it
to the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(java.io.InputStream source,
java.lang.String systemId)
Reads a Document from the given
InputStream and writes it
to the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(java.io.Reader source)
Reads a Document from the given
Reader and writes it to
the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(java.io.Reader source,
java.lang.String systemId)
Reads a Document from the given
Reader and writes it to
the specified XMLWriter using SAX. |
Document |
SAXModifier.modify(java.lang.String source)
Reads a Document from the given URL or filename and writes it to the
specified
XMLWriter using SAX. |
Document |
SAXModifier.modify(java.net.URL source)
Reads a Document from the given
URL and writes it to the
specified XMLWriter using SAX. |
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(org.w3c.dom.Document domDocument) |
Document |
SAXReader.read(java.io.File file)
Reads a Document from the given
File |
Document |
XPPReader.read(java.io.File file)
Reads a Document from the given
File |
Document |
XPP3Reader.read(java.io.File file)
Reads a Document from the given
File |
Document |
SAXReader.read(org.xml.sax.InputSource in)
Reads a Document from the given
InputSource using SAX |
Document |
SAXReader.read(java.io.InputStream in)
Reads a Document from the given stream using SAX
|
Document |
XPPReader.read(java.io.InputStream in)
Reads a Document from the given stream
|
Document |
XPP3Reader.read(java.io.InputStream in)
Reads a Document from the given stream
|
Document |
SAXReader.read(java.io.InputStream in,
java.lang.String systemId)
Reads a Document from the given stream using SAX
|
Document |
XPPReader.read(java.io.InputStream in,
java.lang.String systemID)
Reads a Document from the given stream
|
Document |
XPP3Reader.read(java.io.InputStream in,
java.lang.String systemID)
Reads a Document from the given stream
|
Document |
SAXReader.read(java.io.Reader reader)
Reads a Document from the given
Reader using SAX |
Document |
XPPReader.read(java.io.Reader reader)
Reads a Document from the given
Reader |
Document |
XPP3Reader.read(java.io.Reader reader)
Reads a Document from the given
Reader |
Document |
SAXReader.read(java.io.Reader reader,
java.lang.String systemId)
Reads a Document from the given
Reader using SAX |
Document |
XPPReader.read(java.io.Reader reader,
java.lang.String systemID)
Reads a Document from the given
Reader |
Document |
XPP3Reader.read(java.io.Reader reader,
java.lang.String systemID)
Reads a Document from the given
Reader |
Document |
SAXReader.read(java.lang.String systemId)
Reads a Document from the given URL or filename using SAX.
|
Document |
XPPReader.read(java.lang.String systemID)
Reads a Document from the given URL or filename.
|
Document |
XPP3Reader.read(java.lang.String systemID)
Reads a Document from the given URL or filename.
|
Document |
SAXReader.read(java.net.URL url)
Reads a Document from the given
URL using SAX |
Document |
XPPReader.read(java.net.URL url)
Reads a Document from the given
URL |
Document |
XPP3Reader.read(java.net.URL url)
Reads a Document from the given
URL |
Document |
STAXEventReader.readDocument(java.io.InputStream is)
Constructs a StAX event stream from the provided I/O stream and reads a
DOM4J document from it.
|
Document |
STAXEventReader.readDocument(java.io.InputStream is,
java.lang.String systemId)
Constructs a StAX event stream from the provided I/O stream and reads a
DOM4J document from it.
|
Document |
STAXEventReader.readDocument(java.io.Reader reader)
Constructs a StAX event stream from the provided I/O character stream and
reads a DOM4J document from it.
|
Document |
STAXEventReader.readDocument(java.io.Reader reader,
java.lang.String systemId)
Constructs a StAX event stream from the provided I/O character stream and
reads a DOM4J document from it.
|
Document |
STAXEventReader.readDocument(javax.xml.stream.XMLEventReader reader)
Reads a DOM4J
Document from the provided stream. |
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Document |
DOMWriter.createDomDocument(Document document) |
protected org.w3c.dom.Document |
DOMWriter.createDomDocument(Document document,
org.w3c.dom.DOMImplementation domImpl) |
javax.xml.stream.events.EndDocument |
STAXEventWriter.createEndDocument(Document doc)
Constructs a STAX
EndDocument event from a DOM4J Document . |
javax.xml.stream.events.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. |
void |
XMLWriter.write(Document doc)
This will print the
Document to the current Writer. |
org.w3c.dom.Document |
DOMWriter.write(Document document) |
void |
SAXWriter.write(Document document)
Generates SAX events for the given Document and all its content
|
org.w3c.dom.Document |
DOMWriter.write(Document document,
org.w3c.dom.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)
Creates a JAXP
SAXSource for the given 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