PP with HaXml 1.02

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Mon, 21 May 2001 13:55:27 +0100


> Im proceeding with basic exploratory tests with HaXml (1.02, winhugs feb 2001)
> 
> the pretty print return the closing < on the next line, like 
> 
> <Person-XML
>   ><Name
> 	><string ....
> 
> where i expect
> 
> <Person-XML>
> 	<Name>
> 		<string>
> 
> what am i doing wrong ?

You are not doing anything wrong.  This is the intended behaviour.
It is very important that HaXml does not add whitespace that could be
interpreted as #PCDATA within an element, given that in many cases we
do not know whether the DTD might permit free text in this position.
Whitespace inside the tag is always ignored, so it is a safe way to
display indentation without changing the meaning of the document.

Regards,
    Malcolm