public final class OMDoc
extends java.lang.Object
Constructor and Description |
---|
OMDoc(org.w3c.dom.Document document)
Create OMDoc converter for denoted document.
|
Modifier and Type | Method and Description |
---|---|
static Declaration |
toDeclaration(org.w3c.dom.Node node)
Convert OMDoc representation to declaration.
|
org.w3c.dom.Element |
toNode(Declaration decl)
Convert declaration to OMDoc representation in DOM format.
|
public OMDoc(org.w3c.dom.Document document)
document
- document in which to create new nodes.public org.w3c.dom.Element toNode(Declaration decl)
decl
- a declarationpublic static Declaration toDeclaration(org.w3c.dom.Node node)
node
- DOM object holding the OMDoc representation of a declaration.