[Haskell-cafe] [HXT] Simple question

Uwe Schmidt uwe at fh-wedel.de
Thu Dec 20 06:43:44 EST 2007


Hi Miguel,

> Hmmm, with 'readString ... "<this> </this>"' everything works fine,
> but with 'readString ... "<items><this> </this></items>"' it doesn't.
> Seems to be a bug in HXT.

I don't see the bug:

------------------------------------------

*Main> runX $ ( readString [(a_validate,v_0)] "<items><this> </this></items>" >>> setTraceLevel 4 >>> traceDoc "doc after reading" >>> setTraceLevel 0 >>> writeDocumentToString [])
-- (1) doc after reading
<items>
  <this/>
</items>


content of: "<items><this> </this></items>"
===========================================

---XTag "/"
   |   "source"="\"<items><this> </this></items>\""
   |   "encoding"="UNICODE"
   |   "transfer-URI"="string:"
   |   "transfer-Message"="OK"
   |   "transfer-Status"="200"
   |   "transfer-Encoding"="UNICODE"
   |
   +---XTag "items"
       |
       +---XTag "this"
           |
           +---XText " "


["<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<items><this> </this></items>"]
*Main> 

-----------------------------------------

the space remains there and not element with empty contents occurs

Cheers,

Uwe

-- 

Web: http://www.fh-wedel.de/~si/


More information about the Haskell-Cafe mailing list