XMLDomParser Changes in Pharo 3.0?
XMLDOMParser parse: (FileLocator imageDirectory / 'hocr_sample.html') contents. In Pharo #20623, the above works fine, but in #30856 it spins "forever" processing DTDs. Investigation further, "parser isValidating: false" is supposed to disable DTD validation, but the library still seems to download all the DTDs that it's never going to use, which takes quite a long time for nothing. What are my options? Is there an XML version prior to DTD implementation that works in 3.0? ----- Cheers, Sean -- View this message in context: http://forum.world.st/XMLDomParser-Changes-in-Pharo-3-0-tp4778401.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Sean P. DeNigris wrote
processing DTDs
Additionally, #entityURIFromRelative:andBase: interprets relative URLs like 'xhtml-lat1.ent' as file paths, leading to results like "XMLFileIOException: File @ ~/Squeak/http:/www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent (line 28) (line 3)" ----- Cheers, Sean -- View this message in context: http://forum.world.st/XMLDomParser-Changes-in-Pharo-3-0-tp4778401p4778405.ht... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Sean P. DeNigris wrote
the library still seems to download all the DTDs that it's never going to use, which takes quite a long time for nothing.
What are my options?
Apparently, the magic message is "parser resolvesExternalEntities: false". ----- Cheers, Sean -- View this message in context: http://forum.world.st/XMLDomParser-Changes-in-Pharo-3-0-tp4778401p4778413.ht... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Hi sean can you improve the class comment or the wiki on SmalltalkHub. I do not think that monty is reading this mailing list. One we should get a chapter on XML. What I know is that having validating parser was important and monty did some good job there. Stef
Sean P. DeNigris wrote
the library still seems to download all the DTDs that it's never going to use, which takes quite a long time for nothing.
What are my options? Apparently, the magic message is "parser resolvesExternalEntities: false".
----- Cheers, Sean -- View this message in context: http://forum.world.st/XMLDomParser-Changes-in-Pharo-3-0-tp4778401p4778413.ht... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (2)
-
Sean P. DeNigris -
stepharo