A
Adam Badura
Are comments in XML treated by parser (regarding the value of the
enclosing element) as nothing or as a whitespace? In the example:
<elem>some text<?-- a comment -->some more text</elem>
the contents of "elem" is "some textsome more text", or maybe "some
text some more text" or even "some text[unspecified whitespace]some
more text"?
How does it work for example with XPath when comparing element's value
to an arbitrary string?
I read the specification (http://www.w3.org/TR/REC-xml/#sec-comments)
however I am not entirely sure.
Adam Badura
enclosing element) as nothing or as a whitespace? In the example:
<elem>some text<?-- a comment -->some more text</elem>
the contents of "elem" is "some textsome more text", or maybe "some
text some more text" or even "some text[unspecified whitespace]some
more text"?
How does it work for example with XPath when comparing element's value
to an arbitrary string?
I read the specification (http://www.w3.org/TR/REC-xml/#sec-comments)
however I am not entirely sure.
Adam Badura