You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Robbie Baldock <ro...@realise.com> on 2000/09/01 12:55:46 UTC
RE: Extracting the contents of elements
OK, thanks for the clarification. I've now got this:
NodeList objContentHREFNodeList =
objDocument.getElementsByTagName("content_HREF");
Node objContentHREFNode = objContentHREFNodeList.item(0);
objContentHREFNode.normalize();
What I think I need next is a CharacterDataImpl object based on this Node
which will enable me to call getData() and get the text between the tags.
However, I'm unsure as to how to make the Node into an object of this type -
casting certainly doesn't work.
Any suggestions?
Robbie Baldock