[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">&lt;<a href="mailto:djurodrljaca@gmail.com" \
target="_blank">djurodrljaca@gmail.com</a>&gt;</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 &#39;#&#39; 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 &quot;debugged&quot;?<br>

<br>Regards,<br>Djuro Drljaca<br><br></blockquote><div><br>So the input data looks \
like:<br>&lt;photo&gt;&lt;title&gt;one side clear &amp; one \
snowy&lt;/title&gt;&lt;id&gt;8441049&lt;/id&gt;&lt;views&gt;318&lt;/views&gt;&lt;URL&gt;<a \
href="http://www.flickr.com/photos/ericsbinaryworld/8441049/">http://www.flickr.com/photos/ericsbinaryworld/8441049/</a>&lt;/URL&gt;&lt;JPEG&gt;<a \
href="http://farm1.staticflickr.com/8/8441049_6d70c1faac_m.jpg">farm1.staticflickr.com/8/8441049_6d70c1faac_m.jpg</a>&lt;/JPEG&gt;&lt;/photo&gt;&lt;<br>
 <br>There are plenty of non-alpha numeric characters that work, but apparently there \
is an issue with ampersands (&amp;).  Perhaps I can just write some code to get rid \
of those.  <br><br>The function it&#39;s going into is:<br> <br><br> \
XmlListModel{<br>            id:feedModel<br>            xml:  window.currentGroup \
<br>            query: &quot;/photos/photo&quot;<br>            XmlRole { name: \
&quot;title&quot;; query: &quot;title/string()&quot;}<br>  XmlRole { name: \
&quot;views&quot;; query: &quot;views/string()&quot;}<br>            XmlRole { name: \
&quot;url&quot;; query: &quot;URL/string()&quot;}<br>            XmlRole { name: \
&quot;jpeg&quot;; query: &quot;JPEG/string()&quot;}<br>  XmlRole { name: \
&quot;photo&quot;; query: &quot;id/string()&quot;}<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