Node child;
String text;
// Find the Text nodes contained within this element and return their
// concatenated value. Required to go around comments, entities, etc.
child = getFirstChild();
text = "";
while ( child != null )
{
if ( child instanceof Text )
text = text + ( (Text) child ).getData();
child = child.getNextSibling();
}
return text;