In fact I was not talking about the whitespace including in an element
content. I was talking about the fact that if I have as XML file:
<Root>
<FirstElement>Value</FirstElement>
</Root>
My DOM tree will look like:
+ ELEMENT: Root
+ #TEXT:
+ ELEMENT: FirstElement
+ #TEXT: Value
+ #TEXT:
The #TEXT nodes with empty content represents in fact the carriage
return character.
If instead of using Xerces classes for validation, you use the classes
provided with the jdk, it does not happen.
The DOM tree will be:
+ ELEMENT: Root
+ ELEMENT: FirstElement
+ #TEXT: Value
I do not think that the Xerces behavior is correct but maybe I am wrong
...
-----Original Message-----
From: Prashant [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 10:50
To: [email protected]
Subject: Re: Additionnal #Text node
This issue has been previously discussed. See forwarded message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]