how do I deal with special characters?

Eric Mesa ericsbinaryworld at gmail.com
Sat Oct 27 01:07:19 UTC 2012


On Wed, Jun 27, 2012 at 12:56 PM, Djuro Drljaca <djurodrljaca at gmail.com>wrote:

> Hello,
>
> from what I see in the error string it probably expects only letters (and
> '#' character). Could you write the function call (with a small description
> what is going on) and the problematic input data so that the problem can be
> "debugged"?
>
> Regards,
> Djuro Drljaca
>
>
So the input data looks like:
<photo><title>one side clear & one
snowy</title><id>8441049</id><views>318</views><URL>
http://www.flickr.com/photos/ericsbinaryworld/8441049/</URL><JPEG>
farm1.staticflickr.com/8/8441049_6d70c1faac_m.jpg</JPEG></photo><

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.

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()"}
        }

--
Eric Mesa
http://about.me/ericmesa
http://www.ericsbinaryworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20121026/d468c980/attachment-0001.html>


More information about the Plasma-devel mailing list