[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-cafe
Subject:    Re: PP with HaXml 1.02
From:       Malcolm Wallace <Malcolm.Wallace () cs ! york ! ac ! uk>
Date:       2001-05-21 12:55:27
Message-ID: LB0AAD8QCTufOwcA () cs ! york ! ac ! uk
[Download RAW message or body]

> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic