W3C home > Mailing lists > Public > www-svg@w3.org > April 2001

Re: [Fwd: [Moderator Action] Reading an SVG file using a standard XML parser]

From: Chris Lilley <chris@w3.org>
Date: Mon, 16 Apr 2001 20:09:49 +0200
Message-ID: <3ADB356D.B8D4F239@w3.org>
To: SVG public list <www-svg@w3.org>


Chris Lilley forwarded:

> From: "Mikael Sterley" <mikael.sterley@anoto.com>

> I am using the Microsoft "DOMDocument" COM object on Windows to read an SVG
> file. I get an error message on the line containing "<!DOCTYPE svg
> PUBLIC...". If I remove the line everything works perfectly.

This indicates that the XML parser you are using is not retrieving the
external DTD subset. It may be possible to get it to do this, I believe
it is an optional feature of the MS XML parser.

> Does anyone know if the way SVG files use DOCTYPE (by specifying an external
> DTD file) is part of standard XML? 

Yes, of course it is! (grin) I suggest that you take a look at the XML
specification to verify this, if you are in any doubt.

> In the XML specifications written by
> Microsoft, only DOCTYPE with inline descriptions is mentioned.

Aha, there is your problem straight away. The XML specification was
written by W3C, not by MSDN ;-) you can find the XML specification here:

http://www.w3.org/TR/REC-xml

-- 
Chris
Received on Monday, 16 April 2001 14:10:43 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:20 GMT