You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Nuno Faria <na...@alfarrabio.di.uminho.pt> on 2002/06/19 01:16:15 UTC

XML/SVG crimson parser...

Hi ppl,

First i have to apologize for this "not so batik subject" but i think that someone here can help me.
So, i download crimson XML parser (from http://xml.apache.org/dist/crimson/) in order to parse XML/SVG files and i use an example DOMEcho.java that cames with the distribution and it works fine but only when i'm online (it goes get the DTD to w3c). 
How can i do an offline parser? 

Once again sorry about this matter and thanks if anyone can help me.

Nuno André Faria
Departamento de Informática,
Universidade do Minho
Brag, Portugal

RE: XML/SVG crimson parser...

Posted by Thierry Kormann <tk...@ilog.fr>.
  -----Original Message-----
  From: Nuno Faria [mailto:nasf@alfarrabio.di.uminho.pt]
  Sent: Wednesday, June 19, 2002 1:16 AM
  To: Batik Users
  Subject: XML/SVG crimson parser...


  Hi ppl,

  First i have to apologize for this "not so batik subject" but i think that
someone here can help me.
  So, i download crimson XML parser (from
http://xml.apache.org/dist/crimson/) in order to parse XML/SVG files and i
use an example DOMEcho.java that cames with the distribution and it works
fine but only when i'm online (it goes get the DTD to w3c).
  How can i do an offline parser?

  You can specify your own DTDHandler that will recognize the SVG public
identifier, and use a DTD on your DTD instead of the one available on the
Web. Batik for instance, has its own DTDHandler and if the public identifier
is one of the 'standard' one, we take the SVG DTD from our resources.

  For further details, you can have a look at the
org.apache.batik.dom.util.SAXDocumentFactory class or the
org.apache.batik.dom.svg.SAXSVGDocumentFactory class.

  Hope that helps,
  Thierry.