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 NodeCommon 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 Nodecopy()Simulate clone()Nodecopy(Node orig)Copy all data fromorigintothisNodecreateClone()Simulate clone()XMLTokenizer.TypegetType()Get the node typejava.lang.StringtoXML()Slow way to convert a node to XMLNodetoXML(XMLWriter writer)Fast way to convert many nodes to XML
-
-
-
Method Detail
-
toXML
java.lang.String toXML()
Slow way to convert a node to XML
-
toXML
Node toXML(XMLWriter writer) throws java.io.IOException
Fast way to convert many nodes to XML- Throws:
java.io.IOException
-
getType
XMLTokenizer.Type getType()
Get the node type
-
createClone
Node createClone()
Simulate clone()
-
copy
Node copy()
Simulate clone()
-
-