Hey! very good. But remember... Once you have a DOM from the parser, the nodevalue of the element is NOT 'Hey!' or '\n Hey \n'. In fact the direct nodevalue of any Element is null. (I assume we are using org.apache.dom) The text that we would think is the nodevalue of an element is held as the nodevalue of a Text node which is a child of the Element. So we have to get a NodeList from Element, iterate thru it till we find a (non-whitespace) Text node and get the nodeValue of textnode. Which is all very annoying when all we want is the text from a tag.
-----Original Message----- From: Igor PARTL [mailto:[EMAIL PROTECTED] Sent: Sunday, 18 November 2001 12:50 a.m. To: Xerces-J-User Subject: whitespaceIgnoring (on/off) Hi all! In front of this, I have to say, that this ml is very interesting. But now: There's a feature for the DOMParser, which one allows me to read/write the nodeValues including/without their whiteSpaces (Space, Return...). But I have no idea about the functionality. (I know what I want -- and hope, that the correct way -- but how?) Perhaps I have ignore some facts by studing the samples... Illustration: <xml-node> Hey! </xml-node> Nodevalue with whiteSpace : '\n Hey!\n' NodeValue without whiteSpaces: 'Hey!' Igor PARTL! P.S.: The samples are -- specially for beginners -- very helpful! Congratulation to the authors. -- Sometimes there's more wood in front of my eyes than in the Central Park of N.Y.! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
