On 06 Jan 2014, at 10:06, Igor Stasenko <siguctua@gmail.com> wrote:
On 5 January 2014 15:19, J.F. Rick <self@je77.com> wrote: I am trying to use SVG with Athens; however, the XMLParser for Pharo 3.0 cannot read normal SVG files that it used to. So, the demo of "ASVGMorph fromFile: 'lion.svg'" fails in the XMLParser (i.e., before ASVGMorph really does anything to it). It seems to download the DTD file from the Internet and then cannot properly parse it. Here is my setup:
Up-to-date Pharo 3.0. Added XMLParser from the Configuration Browser. Example file can be found here: http://www.thetangentbundle.net/w/images/f/ff/lion.svg The following brings up an error: XMLDOMParser parseFileNamed: 'lion.svg'
Hmm, why it tries to parse DTD file? It looks like something has changed in XMLDOMParser, because it wasn't before, and there is no support in SVG parser for that.
Yes, the parsing of DTDâd is new, Monthy added it recently. He says there is a way to turn it off.
Cheers,
Jeff
-- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
-- Best regards, Igor Stasenko.