You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by "Shastri Devdutt (Princeton -intern)" <Sh...@tce.com> on 2002/11/21 17:25:46 UTC
cleaning Text Nodes
Hi,
I am using the Xalan Package and parsing the document using Xerces. suppose
I write a doc like this:
<Tags>
<Tag1/>
<Tag2>Hello</Tag2>
</Tags>
while walking through the DOM Tree I get these Text Nodes (value=#text)
which typically i think are due to
spaces,newlines or tabs and which I ignore.All I am interested are the
element nodes and the real text. Is there a way to cleanse the documents of
all these text nodes.
any help appreciated.
TIA,
-Dev.