[Haskell-cafe] [HXT] Simple question
Fernand
quarantedeux42 at yahoo.fr
Thu Dec 20 07:52:45 EST 2007
> 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
More information about the Haskell-Cafe
mailing list