org.dom4j.dom

Class DOMDocument

public class DOMDocument extends DefaultDocument implements Document

DOMDocument implements an XML document which supports the W3C DOM API.

Version: $Revision: 1.17 $

Author: James Strachan

Constructor Summary
DOMDocument()
DOMDocument(String name)
DOMDocument(DOMElement rootElement)
DOMDocument(DOMDocumentType docType)
DOMDocument(DOMElement rootElement, DOMDocumentType docType)
DOMDocument(String name, DOMElement rootElement, DOMDocumentType docType)
Method Summary
NodeappendChild(Node newChild)
NodecloneNode(boolean deep)
AttrcreateAttribute(String name)
AttrcreateAttributeNS(String namespaceURI, String qualifiedName)
CDATASectioncreateCDATASection(String data)
CommentcreateComment(String data)
DocumentFragmentcreateDocumentFragment()
ElementcreateElement(String name)
ElementcreateElementNS(String namespaceURI, String qualifiedName)
EntityReferencecreateEntityReference(String name)
ProcessingInstructioncreateProcessingInstruction(String target, String data)
TextcreateTextNode(String data)
NamedNodeMapgetAttributes()
NodeListgetChildNodes()
DocumentTypegetDoctype()
ElementgetDocumentElement()
protected DocumentFactorygetDocumentFactory()
ElementgetElementById(String elementId)
NodeListgetElementsByTagName(String name)
NodeListgetElementsByTagNameNS(String namespace, String name)
NodegetFirstChild()
DOMImplementationgetImplementation()
NodegetLastChild()
StringgetLocalName()
StringgetNamespaceURI()
NodegetNextSibling()
StringgetNodeName()
StringgetNodeValue()
DocumentgetOwnerDocument()
NodegetParentNode()
StringgetPrefix()
NodegetPreviousSibling()
booleanhasAttributes()
booleanhasChildNodes()
NodeimportNode(Node importedNode, boolean deep)
NodeinsertBefore(Node newChild, Node refChild)
booleanisSupported(String feature, String version)
NoderemoveChild(Node oldChild)
NodereplaceChild(Node newChild, Node oldChild)
voidsetNodeValue(String nodeValue)
voidsetPrefix(String prefix)
booleansupports(String feature, String version)

Constructor Detail

DOMDocument

public DOMDocument()

DOMDocument

public DOMDocument(String name)

DOMDocument

public DOMDocument(DOMElement rootElement)

DOMDocument

public DOMDocument(DOMDocumentType docType)

DOMDocument

public DOMDocument(DOMElement rootElement, DOMDocumentType docType)

DOMDocument

public DOMDocument(String name, DOMElement rootElement, DOMDocumentType docType)

Method Detail

appendChild

public Node appendChild(Node newChild)

cloneNode

public Node cloneNode(boolean deep)

createAttribute

public Attr createAttribute(String name)

createAttributeNS

public Attr createAttributeNS(String namespaceURI, String qualifiedName)

createCDATASection

public CDATASection createCDATASection(String data)

createComment

public Comment createComment(String data)

createDocumentFragment

public DocumentFragment createDocumentFragment()

createElement

public Element createElement(String name)

createElementNS

public Element createElementNS(String namespaceURI, String qualifiedName)

createEntityReference

public EntityReference createEntityReference(String name)

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(String target, String data)

createTextNode

public Text createTextNode(String data)

getAttributes

public NamedNodeMap getAttributes()

getChildNodes

public NodeList getChildNodes()

getDoctype

public DocumentType getDoctype()

getDocumentElement

public Element getDocumentElement()

getDocumentFactory

protected DocumentFactory getDocumentFactory()

getElementById

public Element getElementById(String elementId)

getElementsByTagName

public NodeList getElementsByTagName(String name)

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespace, String name)

getFirstChild

public Node getFirstChild()

getImplementation

public DOMImplementation getImplementation()

getLastChild

public Node getLastChild()

getLocalName

public String getLocalName()

getNamespaceURI

public String getNamespaceURI()

getNextSibling

public Node getNextSibling()

getNodeName

public String getNodeName()

getNodeValue

public String getNodeValue()

getOwnerDocument

public Document getOwnerDocument()

getParentNode

public Node getParentNode()

getPrefix

public String getPrefix()

getPreviousSibling

public Node getPreviousSibling()

hasAttributes

public boolean hasAttributes()

hasChildNodes

public boolean hasChildNodes()

importNode

public Node importNode(Node importedNode, boolean deep)

insertBefore

public Node insertBefore(Node newChild, Node refChild)

isSupported

public boolean isSupported(String feature, String version)

removeChild

public Node removeChild(Node oldChild)

replaceChild

public Node replaceChild(Node newChild, Node oldChild)

setNodeValue

public void setNodeValue(String nodeValue)

setPrefix

public void setPrefix(String prefix)

supports

public boolean supports(String feature, String version)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge