Lists Home |
Date Index |
- From: Tyler Baker <firstname.lastname@example.org>
- To: "Prashanth K. Salur" <email@example.com>
- Date: Tue, 17 Nov 1998 22:47:49 -0500
"Prashanth K. Salur" wrote:
> Hi all,
> Is a white space(#text) also considered as a node in a DOM. How to
> ignore the white space?
One thing you can do to normalize an element's character data and all of its
child element character data is to call Element.normalize().
This is the simplest thing to do here. The only problem with this approach is
that when you call normalize on an element all sub-elements are also normalized.
I suppose you could write your own utility routine which would effectively do the
same thing as normalize, though only on the immediate character data of the
selected element, so you may want to do that.
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)
- From: "Prashanth K. Salur" <firstname.lastname@example.org>