Re: [Tracker] rdfq and encoding



Fabien VALLON wrote:
Jamie McCracken a écrit :
You missed the point - you cant parse it on the server or client if its invalid xml!
I don't.
That just that xml is quite hairy : You have to be "valid" for field that you shouldn't

ex :
Album.Artist = foo & bar  query
or
Album.Album ~= Joe

could be parse without all the overhead that xml adds.

Anyway, do you have a link to know what I have to escape ?


yes we use the glib xml parser see -
http://developer.gnome.org/doc/API/2.0/glib/glib-Simple-XML-Subset-Parser.html

it lists the five entities that need to be escaped + it also has a function to do the escaping for you :

g_markup_escape_text ()

so its quite painless really :)

--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]