Package de.pdark.decentxml
Interface Node
-
- All Known Implementing Classes:
Attribute
,BasicNode
,Comment
,DocType
,DocTypeAttributeList
,DocTypeElement
,DocTypeEntity
,DocTypeNotation
,DocTypeText
,Document
,Element
,Entity
,NodeWithChildren
,ProcessingInstruction
,Text
,XMLDeclaration
public interface Node
Common interface for all nodes in an XML document.- Author:
- digulla
- See Also:
Document
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Node
copy()
Simulate clone()Node
copy(Node orig)
Copy all data fromorig
intothis
Node
createClone()
Simulate clone()XMLTokenizer.Type
getType()
Get the node typeString
toXML()
Slow way to convert a node to XMLNode
toXML(XMLWriter writer)
Fast way to convert many nodes to XML
-
-
-
Method Detail
-
toXML
String toXML()
Slow way to convert a node to XML
-
toXML
Node toXML(XMLWriter writer) throws IOException
Fast way to convert many nodes to XML- Throws:
IOException
-
getType
XMLTokenizer.Type getType()
Get the node type
-
createClone
Node createClone()
Simulate clone()
-
copy
Node copy()
Simulate clone()
-
-