com.ximpleware
Class TextIter

java.lang.Object
  extended by com.ximpleware.TextIter

public class TextIter
extends java.lang.Object

This class iterates through all text nodes of an element. VTDNav has getText() which is inadequate for mixed content style of XML. text nodes include character_data and CDATA. Creation date: (12/5/03 5:53:41 PM)


Constructor Summary
TextIter()
          TextIter constructor comment.
 
Method Summary
 int getNext()
          Get the index vals for the text nodes in document order.
 void touch(VTDNav v)
          Obtain the current navigation position and element info from VTDNav.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextIter

public TextIter()
TextIter constructor comment.

Method Detail

getNext

public int getNext()
Get the index vals for the text nodes in document order. Creation date: (12/5/03 6:11:50 PM)

Returns:
int (-1 if no more left)

touch

public void touch(VTDNav v)
Obtain the current navigation position and element info from VTDNav. So one can instantiate it once and use it for many different elements Creation date: (12/5/03 6:20:44 PM)

Parameters:
v - com.ximpleware.VTDNav