org.zkoss.xml
Class Nodes

java.lang.Object
  extended by org.zkoss.xml.Nodes

public class Nodes
extends Object

Node related utilities. It supports iDOM.

Author:
tomyeh

Field Summary
static NodeList EMPTY_NODELIST
          The empty node list.
 
Constructor Summary
Nodes()
           
 
Method Summary
static String valueOf(Node node)
          Get the text value of a node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_NODELIST

public static final NodeList EMPTY_NODELIST
The empty node list.

Constructor Detail

Nodes

public Nodes()
Method Detail

valueOf

public static final String valueOf(Node node)
Get the text value of a node.

If the node is not an element, Node.getNodeValue is called. If the node is an element, the returned string is a catenation of all values of TEXT_NODE and CDATA_SECTION_NODE.

Textual nodes include Text, CDATA and Binary (iDOM's extension).



Copyright © 2012. All Rights Reserved.