--===============6192316120352752938== Content-Type: multipart/alternative; boundary=f46d04462d7625034704cd092e3b --f46d04462d7625034704cd092e3b Content-Type: text/plain; charset=ISO-8859-1 On Sat, Oct 27, 2012 at 2:56 AM, David Narvaez wrote: > On Fri, Oct 26, 2012 at 8:07 PM, Eric Mesa > wrote: > > So the input data looks like: > > one side clear & one > snowy8441049318 > http://www.flickr.com/photos/ericsbinaryworld/8441049/ > farm1.staticflickr.com/8/8441049_6d70c1faac_m.jpg< > > > > There are plenty of non-alpha numeric characters that work, but > apparently there is an issue with ampersands (&). Perhaps I can just write > some code to get rid of those. > > There's plenty of code that deals with that. In general, you never > want to write XML without proper escaping first; in this case escaping > could actually happen at the XmlListModel level. For a quick fix, > escape all of the string() values below. > > > The function it's going into is: > > > > > > XmlListModel{ > > id:feedModel > > xml: window.currentGroup > > query: "/photos/photo" > > XmlRole { name: "title"; query: "title/string()"} > > XmlRole { name: "views"; query: "views/string()"} > > XmlRole { name: "url"; query: "URL/string()"} > > XmlRole { name: "jpeg"; query: "JPEG/string()"} > > XmlRole { name: "photo"; query: "id/string()"} > > } > > David E. Narvaez > _______________________________________________ > Plasma-devel mailing list > Plasma-devel@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel > Ah, I see. Good to know. Thanks for that. I tested the code yesterday and it works. The only bad thing is that it uses a deprecated function that won't be in python 3 so I'll have to refigure it out once Python 2 is gone. (the code that feeds the data engine is python) -- Eric Mesa http://about.me/ericmesa http://www.ericsbinaryworld.com --f46d04462d7625034704cd092e3b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On Sat, Oct 27, 2012 at 2:56 AM, David N= arvaez <david.narvaez@computer.org> wrote:
There's plenty of code that deals with that. In general, you neve= r
want to write XML without proper escaping first; in this case escaping
could actually happen at the XmlListModel level. For a quick fix,
escape all of the string() values below.

> The function it's going into is:
>
>
> =A0XmlListModel{
> =A0 =A0 =A0 =A0 =A0 =A0 id:feedModel
> =A0 =A0 =A0 =A0 =A0 =A0 xml: =A0window.currentGroup
> =A0 =A0 =A0 =A0 =A0 =A0 query: "/photos/photo"
> =A0 =A0 =A0 =A0 =A0 =A0 XmlRole { name: "title"; query: &quo= t;title/string()"}
> =A0 =A0 =A0 =A0 =A0 =A0 XmlRole { name: "views"; query: &quo= t;views/string()"}
> =A0 =A0 =A0 =A0 =A0 =A0 XmlRole { name: "url"; query: "= URL/string()"}
> =A0 =A0 =A0 =A0 =A0 =A0 XmlRole { name: "jpeg"; query: "= ;JPEG/string()"}
> =A0 =A0 =A0 =A0 =A0 =A0 XmlRole { name: "photo"; query: &quo= t;id/string()"}
> =A0 =A0 =A0 =A0 }

David E. Narvaez
Ah, I see.=A0 Good to know.=A0 Thanks for th= at.=A0 I tested the code yesterday and it works.=A0 The only bad thing is that it uses a deprecated function that won't be in python 3 so I'll have to refigure it out once Pyt= hon 2 is gone.=A0 (the code that feeds the data engine is python)
--
Eric Mesa
http://about.me/ericmesa
http://www.ericsbinaryworld.com
--f46d04462d7625034704cd092e3b-- --===============6192316120352752938== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============6192316120352752938==--