Heya bruno, I get this when trying to import clip art using the tag, tree.
rejon@...33... ~ $ /usr/local/bin/inkscape /tmp/ocalfeed.xml:86: parser error : Entity 'ldquo' not defined Ray, John: “A Compleat Collection of English Proverbs” (1737)<br /> ^ /tmp/ocalfeed.xml:86: parser error : Entity 'rdquo' not defined Ray, John: “A Compleat Collection of English Proverbs” (1737)<br /> ^
** (inkscape:11465): WARNING **: Failed to parse /tmp/ocalfeed.xml
###
I believe that you need to set the parser to interpret the special characters correctly, or translate them pre-parse...I can't remember the best way to do it, but have done before on some jabber stuff I did ages ago...
Anyone else? Happy late labor day friends...
Jon
Hi Jon,
I spent some time looking for solutions in xmllib2 documentation, but I couldn't fix it yet. I mailed xmllib list, so they are trying to help me.
But I've made some tests, and I'm not sure the rss feed is well formed. I tried to validate it with feedvalidator.org http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fopenclipart.org%2Fmedia%... and W3C feed validator http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fopenclipart.org%2Fme..., and it failed with the both. I tried to read it with firefox, and it gives an error too.
So I'm not sure the HTML entities are correctly used in the RSS. What do you think about it?
On 9/4/07, Jon Phillips <jon@...235...> wrote:
Heya bruno, I get this when trying to import clip art using the tag, tree.
rejon@...33... ~ $ /usr/local/bin/inkscape /tmp/ocalfeed.xml:86: parser error : Entity 'ldquo' not defined Ray, John: “A Compleat Collection of English Proverbs” (1737)<br /> ^ /tmp/ocalfeed.xml:86: parser error : Entity 'rdquo' not defined Ray, John: “A Compleat Collection of English Proverbs” (1737)<br /> ^
** (inkscape:11465): WARNING **: Failed to parse /tmp/ocalfeed.xml
###
I believe that you need to set the parser to interpret the special characters correctly, or translate them pre-parse...I can't remember the best way to do it, but have done before on some jabber stuff I did ages ago...
Anyone else? Happy late labor day friends...
Jon
-- Jon Phillips
San Francisco, CA USA PH 510.499.0894 jon@...235... http://www.rejon.org
MSN, AIM, Yahoo Chat: kidproto Jabber Chat: rejon@...896... IRC: rejon@...897...
Bruno,
I spent some time looking for solutions in xmllib2 documentation, but I couldn't fix it yet. I mailed xmllib list, so they are trying to help me.
But I've made some tests, and I'm not sure the rss feed is well formed.
It is indeed non-well-formed, since it has no DTD with entities declarations yet it uses these entities. I think you can fix it in two ways - either provide the parser with your own DTD with these declarations (for example http://my.netscape.com/publish/formats/rss-0.91.dtd should work), or just brute-force replace all the named entites with numeric entites before sending the file to the parser.
participants (3)
-
Bruno Dilly
-
bulia byak
-
Jon Phillips