>If what you're after is BOTH the "literalizing" of special characters
>AND the preservation of whitespace, then you need BOTH to use a CDATA
>section AND to specify xml:space=preserve on the enclosing element. (The
>latter preserves the entire element's content; there's no way to protect
>just a portion of it.)
So, there is no inherent XML equivalent to "PRE" in HTML?
The problem in our case =may= fall on the difference in xml string parsing between JDK 1.2 and 1.3. The latter preserves space; the former, for whatever reason, reduced whitespace. (If this works out--we're trying to figure out why this works on one box and not on another--why the same code on our part renders differently on two different Solaris machines.)
But that also describes the problem, somewhat. We don't have a DTD. We're using material that is "well-formed xml", but there is no apparent way to indicate to the parser anything about space being preserved or not. Has anyone else run into this probelm?
[log in to unmask]