de.pdark.decentxml
Interface Node

All Known Subinterfaces:
Child, Parent
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
 Node copy()
          Simulate clone()
 Node copy(Node orig)
          Copy all data from orig into this
 Node createClone()
          Simulate clone()
 XMLTokenizer.Type getType()
          Get the node type
 java.lang.String toXML()
          Slow way to convert a node to XML
 Node toXML(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


copy

Node copy(Node orig)
Copy all data from orig into this


createClone

Node createClone()
Simulate clone()


copy

Node copy()
Simulate clone()



Copyright © 2008-2011. All Rights Reserved.