> -----Original Message-----
> From: Michael Glavassevich [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 21, 2007 11:34 AM
> To: [email protected]
> Subject: Re: DOM Layout Assumptions ?
> 
> Dale,
> 
> Considering that this is valid:
> 
> <x>200<!-- commment in the middle of a value -->00</x>
> 
> even for a valid document (which I think you meant to say) 
> you can't assume that. This is just one example. I can think 
> of at least a few others which break your assumption.
> 
> Thanks.
> 
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [EMAIL PROTECTED]
> E-mail: [EMAIL PROTECTED]
> 
Ouch,

So I guess I will need to check all child nodes of the element, and if I
find more than one text node, either merge them or declare an error.
(Given the actual method these XML messages are generated, I would never
expect to see your scenario above so I think I will call it an error
until someone forces me to write a more robust handler).

Dale

Reply via email to