Thanks for your speedy response Dale,

Yes, know that within XML, they are defined to be equivalent, but there a many legacy SGML parsers that differentiate them, such as Web browsers. I was -hoping- that there would be a way of preserving the form of the text, regardless of it's equivalence. But I am assuming from your answer that it is probably not be the case.

B.

On 8 Apr 2009, at 15:37, Dale Worley wrote:

On Wed, 2009-04-08 at 15:19 +0100, Ben Griffin wrote:
If I have an element with no content such as: .... <xxx></xxx>  ....
How can I preserve it as an element, without it being normalised to
the empty element <xxx />

The two forms are defined to be equivalent, so I wouldn't be surprise if
XML output software feels free to replace the one with the other.

Dale



Reply via email to