<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    We use the Ocal search at <a class="moz-txt-link-freetext"
      href="http://www.imagebot.com/">http://www.imagebot.com/</a><br>
    and came across a few errors like this.  I dropped the description
    before parsing the xml.<br>
    (search "help", "apple" are two examples).<br>
    <br>
    here is an evil regex to get around the problem till it's encoded:<br>
    <br>
          str = get the xml ();<br>
           str = str.replaceAll("[\r\n]","
").replaceAll("<description>.*?</description>","<description></description>");<br>
    <br>
    of course, I'm guessing there is nothing to stop from someone
    putting </description> in the description and really hosing
    things up.<br>
    <br>
    Cameron<br>
    Online SVG Editor: <a class="moz-txt-link-freetext"
      href="http://www.imagebot.com/">http://www.imagebot.com/</a><br>
    <br>
    On 04/18/2011 04:33 PM, Fabricatorz Team wrote:
    <blockquote
      cite="mid:BANLkTin00_OJm87YLRf42CfaaC6Mx24yLQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Oh, we need to encode these. Please file as a bug:
        <a moz-do-not-send="true"
          href="http://bugs.launchpad.net/openclipart">http://bugs.launchpad.net/openclipart</a><br>
        <br>
        Cheers!<br>
        <br>
        <div class="gmail_quote">On Mon, Apr 11, 2011 at 3:19 PM, James
          Bench <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:james@jbench.co.uk">james@jbench.co.uk</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">Good evening again,<br>
            <br>
            I've spent a few minutes throwing together a class to parse
            the XML but I'm hitting a stumbling block with the XML being
            invalid, in a search for cake one result is:<br>
            <pre><<span>item</span>>
        <<span>title</span>>Birthday Cake Fade</<span>title</span>>
        <<span>link</span>><a moz-do-not-send="true" href="http://www.openclipart.org/detail/1242263456035.svg" target="_blank">http://www.openclipart.org/detail/1242263456035.svg</a></<span>link</span>>

        <<span>pubDate</span>>2010-04-24 21:31:59</<span>pubDate</span>>
        <<span>dc:creator</span>>rejon</<span>dc:creator</span>>
        <<span>description</span>>These are images from my 2010 travels I've converted with this command:

for i in *.jpg; do convert "$i" "`basename "$i" .jpg`.png" && autotrace -despeckle-level 15 -color-count 6 -input-format PNG -output-file "`basename "$i" .jpg`".svg -output-format svg "`basename "$i" .jpg`.png"; done</<span>description</span>>
</pre>
            <pre>    <<span>content:encoded</span>><span><![CDATA[These are images from my 2010 travels I've converted with this command:

for i in *.jpg; do convert "$i" "`basename "$i" .jpg`.png" && autotrace -despeckle-level 15 -color-count 6 -input-format PNG -output-file "`basename "$i" .jpg`".svg -output-format svg "`basename "$i" .jpg`.png"; done]]></span></<span>content:encoded</span>>
        <<span>enclosure</span><span> url</span>=<span>"<a moz-do-not-send="true" href="http://www.openclipart.org/people/rejon/1242263456035.svg" target="_blank">http://www.openclipart.org/people/rejon/1242263456035.svg</a>" </span><span>type</span>=<span>"octect/stream"</span>></<span>enclosure</span>>
        <<span>guid</span>><a moz-do-not-send="true" href="http://www.openclipart.org/detail/1242263456035.svg" target="_blank">http://www.openclipart.org/detail/1242263456035.svg</a></<span>guid</span>>
        <<span>cc:license</span>><a moz-do-not-send="true" href="http://creativecommons.org/licenses/publicdomain" target="_blank">http://creativecommons.org/licenses/publicdomain</a></<span>cc:license</span>>
        <<span>media:thumbnail</span><span> url</span>=<span>"<a moz-do-not-send="true" href="http://www.openclipart.org/image/90px/svg_to_png/1242263456035.png" target="_blank">http://www.openclipart.org/image/90px/svg_to_png/1242263456035.png</a>"</span>></<span>media:thumbnail</span>>
</<span>item</span>></pre>
            The error is due the the &s in <br>
            <br>
            <pre>for i in *.jpg; do convert "$i" "`basename "$i" .jpg`.png" && autotrace -despeckle-level 15 -color-count 6 -input-format PNG -output-file "`basename "$i" .jpg`".svg -output-format svg "`basename "$i" .jpg`.png"; done</pre>
            not being escaped correctly, I'm happy to have a look and
            try to fix this for you if you point me in the right
            direction or if you can sort this for me that would also be
            great.
            <div class="im"><br>
              <br>
              Cheers,<br>
              <br clear="all">
              James Bench<br>
              <br>
              Mob: 07882098806<br>
              <br>
              <br>
              <br>
            </div>
            <div>
              <div class="h5">
                <div class="gmail_quote">On Mon, Apr 11, 2011 at 8:23
                  PM, James Bench <span dir="ltr"><<a
                      moz-do-not-send="true"
                      href="mailto:james@jbench.co.uk" target="_blank">james@jbench.co.uk</a>></span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    Good evening,<br>
                    <br>
                    Sorry about the delay, I've had a small play with
                    the API and think it'll be more than enough for what
                    I'm wanting to do, I've just got to find the time to
                    get it done now, I also need to check where I stand
                    with Shutterstock and this, there TOS forbid the
                    integration of competitors products onto the site,
                    but as you guys are completely free I'm not
                    convinced you actually compete with Shutterstock, I
                    also think I managed to get exempted form that
                    clause so I don't think it'll be an issue.<br>
                    <br>
                    I'll try and spend some time on it over the next
                    week.<br>
                    <br>
                    I notice that you don't have any advertising on the
                    site and wondered if you'd be interested in a
                    sponsorship deal to help out with the cost of
                    hosting and things, all I'd ask in return is access
                    to the API and a link on the main site.
                    <div>
                      <br>
                      <br>
                      Cheers,<br>
                      <br clear="all">
                      James Bench<br>
                      <br>
                      Mob: 07882098806<br>
                      <br>
                      <br>
                      <br>
                    </div>
                    <div>
                      <div>
                        <div class="gmail_quote">On Fri, Apr 8, 2011 at
                          7:02 AM, Fabricatorz Team <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:info@fabricatorz.com"
                              target="_blank">info@fabricatorz.com</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote" style="margin:
                            0pt 0pt 0pt 0.8ex; border-left: 1px solid
                            rgb(204, 204, 204); padding-left: 1ex;">
                            James, anything cool come from this?<br>
                            <div>
                              <div><br>
                                On Wed, Feb 23, 2011 at 8:47 PM, Bassel
                                Safadi <<a moz-do-not-send="true"
                                  href="mailto:bassel.safadi@gmail.com"
                                  target="_blank">bassel.safadi@gmail.com</a>>
                                wrote:<br>
                                > James,<br>
                                > are you using this one:<br>
                                > <a moz-do-not-send="true"
                                  href="http://www.openclipart.org/api/search/?query=YOUR+QUERY"
                                  target="_blank">http://www.openclipart.org/api/search/?query=YOUR+QUERY</a><br>
                                > this one is the pretty stable<br>
                                ><br>
                                > On Wed, Feb 23, 2011 at 8:58 PM,
                                James Bench <<a
                                  moz-do-not-send="true"
                                  href="mailto:james@jbench.co.uk"
                                  target="_blank">james@jbench.co.uk</a>>
                                wrote:<br>
                                >><br>
                                >> Hi all,<br>
                                >><br>
                                >> That's enough for what I
                                currently want to do, is it safe to use
                                that API<br>
                                >> or am I better to wait a few
                                months for a new one?<br>
                                >><br>
                                >> Cheers,<br>
                                >><br>
                                >> James Bench<br>
                                >><br>
                                >> Mob: 07882098806<br>
                                >><br>
                                >><br>
                                >><br>
                                >> On Tue, Feb 22, 2011 at 9:37
                                PM, Fabricatorz Team <<a
                                  moz-do-not-send="true"
                                  href="mailto:info@fabricatorz.com"
                                  target="_blank">info@fabricatorz.com</a>><br>
                                >> wrote:<br>
                                >>><br>
                                >>> Ask and ye shall receive!
                                Chovynz what is our latest API
                                documentation?<br>
                                >>> Feels out of date.<br>
                                >>><br>
                                >>> <a moz-do-not-send="true"
                                  href="HTTP://OPENCLIPART.org/wiki/API"
                                  target="_blank">HTTP://OPENCLIPART.org/wiki/API</a><br>
                                >>><br>
                                >>> <a moz-do-not-send="true"
                                  href="mailto:jon@fabricatorz.com"
                                  target="_blank">jon@fabricatorz.com</a><br>
                                >>> <a moz-do-not-send="true"
                                  href="http://fabricatorz.com"
                                  target="_blank">http://fabricatorz.com</a><br>
                                >>><br>
                                >>> On Feb 22, 2011 11:57 AM,
                                "James Bench" <<a
                                  moz-do-not-send="true"
                                  href="mailto:james@jbench.co.uk"
                                  target="_blank">james@jbench.co.uk</a>>
                                wrote:<br>
                                >>> > From: James Bench <<a
                                  moz-do-not-send="true"
                                  href="mailto:james@jbench.co.uk"
                                  target="_blank">james@jbench.co.uk</a>><br>
                                >>> > Subject: OpenClipart
                                Api<br>
                                >>> ><br>
                                >>> > Message Body:<br>
                                >>> > Hi,<br>
                                >>> ><br>
                                >>> > I run <a
                                  moz-do-not-send="true"
                                  href="http://freevectors.net"
                                  target="_blank">freevectors.net</a>
                                and I'd like to include search results
                                from<br>
                                >>> > OpenClipart in the
                                sites search results in a similar way to
                                how ShutterStock<br>
                                >>> > are included (except
                                they're free), are there currently any
                                plans for an API<br>
                                >>> > that would allow this
                                sort of integration?<br>
                                >>> ><br>
                                >>> > Cheers,<br>
                                >>> ><br>
                                >>> > James Bench<br>
                                >>> ><br>
                                >>> > --<br>
                                >>> > This mail is sent via
                                contact form on Fabricatorz<br>
                                >>> > <a
                                  moz-do-not-send="true"
                                  href="http://fabricatorz.com"
                                  target="_blank">http://fabricatorz.com</a><br>
                                >>> ><br>
                                >><br>
                                ><br>
                                ><br>
                                ><br>
                                > --<br>
                                > Bassel Safadi<br>
                                > <a moz-do-not-send="true"
                                  href="http://bassel.ws"
                                  target="_blank">http://bassel.ws</a><br>
                                > <a moz-do-not-send="true"
                                  href="http://aikilab.org"
                                  target="_blank">http://aikilab.org</a><br>
                                > Global +1 323-545-3855<br>
                                > Singapore +65 93488349<br>
                                ><br>
                                ><br>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                    </div>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <a moz-do-not-send="true" href="http://fabricatorz.com"
          target="_blank">http://fabricatorz.com</a><br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
clipart mailing list
<a class="moz-txt-link-abbreviated" href="mailto:clipart@lists.freedesktop.org">clipart@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/clipart">http://lists.freedesktop.org/mailman/listinfo/clipart</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>