[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: how do I deal with special characters?
From: Eric Mesa <ericsbinaryworld () gmail ! com>
Date: 2012-10-27 1:07:19
Message-ID: CAKYHq8LO4mtG=beRhGba7YscLzYswd8vbbf-1Yy1KqVar5T-fA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Wed, Jun 27, 2012 at 12:56 PM, Djuro Drljaca <djurodrljaca@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
[Attachment #5 (text/html)]
<br><br><div class="gmail_quote">On Wed, Jun 27, 2012 at 12:56 PM, Djuro Drljaca \
<span dir="ltr"><<a href="mailto:djurodrljaca@gmail.com" \
target="_blank">djurodrljaca@gmail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hello,<br><br>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"?<br>
<br>Regards,<br>Djuro Drljaca<br><br></blockquote><div><br>So the input data looks \
like:<br><photo><title>one side clear & one \
snowy</title><id>8441049</id><views>318</views><URL><a \
href="http://www.flickr.com/photos/ericsbinaryworld/8441049/">http://www.flickr.com/photos/ericsbinaryworld/8441049/</a></URL><JPEG><a \
href="http://farm1.staticflickr.com/8/8441049_6d70c1faac_m.jpg">farm1.staticflickr.com/8/8441049_6d70c1faac_m.jpg</a></JPEG></photo><<br>
<br>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. <br><br>The function it's going into is:<br> <br><br> \
XmlListModel{<br> id:feedModel<br> xml: window.currentGroup \
<br> query: "/photos/photo"<br> XmlRole { name: \
"title"; query: "title/string()"}<br> XmlRole { name: \
"views"; query: "views/string()"}<br> XmlRole { name: \
"url"; query: "URL/string()"}<br> XmlRole { name: \
"jpeg"; query: "JPEG/string()"}<br> XmlRole { name: \
"photo"; query: "id/string()"}<br> }<br><br \
clear="all">--<br>Eric Mesa<div><a href="http://about.me/ericmesa" \
target="_blank">http://about.me/ericmesa</a><br><a \
href="http://www.ericsbinaryworld.com" \
target="_blank">http://www.ericsbinaryworld.com</a></div> <br>
<br></div></div><br>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic