Hi Kira, I think this is consistent with how XML is defined. There is a sequence of character data inside of tags. Character data is represented by strings in the `xml` library. And there is a sequence of those.
Jay -- Jay McCarthy Associate Professor @ CS @ UMass Lowell http://jeapostrophe.github.io Vincit qui se vincit. On Thu, Nov 21, 2019 at 12:51 PM Kira <peacekeeperat...@gmail.com> wrote: > > I have a few questions. > > 1. Consider XML like this: > <ROOT><A><B1>test</B1><B2>"test qoute"</B2></A></ROOT> > > > (string->xexpr "<ROOT><A><B1>test</B1><B2>"test > qoute"</B2></A></ROOT>") > Will produce this: > '(ROOT () (A () (B1 () "test") (B2 () "\"" "test qoute" "\""))) > > The problem is " 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 " 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. -- 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/CAJYbDa%3DO%2B6ugXX9supb0P4GFqMz9xhoCisiiH6RSmJ2L4v3xtA%40mail.gmail.com.