Package org.zkoss.xml

Class Nodes

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

public class Nodes extends Object
Node related utilities. It supports iDOM.
Author:
tomyeh
  • Field Details

    • EMPTY_NODELIST

      public static final NodeList EMPTY_NODELIST
      The empty node list.
  • Constructor Details

    • Nodes

      public Nodes()
  • Method Details

    • 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 concatenation of all values of TEXT_NODE and CDATA_SECTION_NODE.

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