Prelude Text.XML.HXT.Arrow> runX $ ( readString [(a_validate,v_0)] "<x><y> </y></x>" >>> setTraceLevel 4 >>> traceDoc "doc after reading" >>> s
etTraceLevel 0 >>> writeDocumentToString [(a_indent, v_1)])
-- (1) doc after reading
<x>
  <y/>
</x>


content of: "<x><y> </y></x>"
=============================

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


["<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<x>\n  <y/>\n</x>\n"]
We can see that the text node is here, but the <y> node is displayed as an empty node !
Thank you everyone, I report this to the HXT team.

Fernand
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to