I have a few questions.

1. Consider XML like this:
<ROOT><A><B1>test</B1><B2>&quot;test qoute&quot;</B2></A></ROOT>


(string->xexpr "<ROOT><A><B1>test</B1><B2>&quot;test 
qoute&quot;</B2></A></ROOT>")
Will produce this:
'(ROOT () (A () (B1 () "test") (B2 () "\"" "test qoute" "\"")))

The problem is &quot; is parsed as separate entity. You can see that they 
added to list of element content as separate strings "\"" "test qoute" "\""

And, (read-xml) do the same thing.
And they somehow converted back to text in rigth maner.

I tested sxml. And it is producer rigth (for me) output.

I feel that this is wrong behavior. Because this &quot; symbols is direct 
part of one and whole element content. And must be read as "\"test qoute\"".

Can please someone explain reasoning under such behaivor, and can we change 
it? Perhaps it is important for some other racket libs?
It is just totally contrintuitive for me. And creating a huge problems with 
even simple XML parsing. (I am basically battling XML lib all day already 
to do most simple tasks)

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/b5047678-0d11-4d00-a1e9-1579ad745e6b%40googlegroups.com.

Reply via email to