Title: How To remove WhiteSpace
Hi,
 
Read the document nodelist and from the nodelist check the node as whether it is of type ELEMENT_NODE like this... Hope this helps..
 
              Node n = nl.item(i);
              if (n.getNodeType()==Node.ELEMENT_NODE)
 

Ragu
CircuitVision

-----Original Message-----
From: Harikrishna_B [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 13, 2002 8:35 AM
To: [EMAIL PROTECTED]
Subject: How To remove WhiteSpace

Hello All,
    I constructed a Dom from an xml file.
    I had counted the number of children for the rootnode.
    I am getting #text elements are also the children of root node.
    How to remove this #text?
    This empty element is coming between one element and the other element.


Thanks in Advance,
B.HARIKRISHNA


**************************************************************************
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

**************************************************************************

Reply via email to