Hi Richard,
Richard Suematsu <[EMAIL PROTECTED]> wrote on 12/01/2006 09:24:10 PM:
> I'm getting a svg document from a web server that requires client side
> certificates. So I can't just pass in a URI into batik. I'm trying to
> create my svg document with the
> SAXSVGDocumentFactory.createDocument(URI, Reader), but I don't know what
> to put into the URI part. If I leave it blank, I get a no protocol
error.
The URI part is used to resolve any relative URI's. I suspect that
this is hopeless in your case since you need client side certificates.
> I tried just creating a Document with the regular DOM parser, but when I
> do a setDocument, I get an ClassCastException GenericElement error.
The problem is likely that your document doesn't set the
default namespace to the SVG namespace. So all your elements
are ending up in the no-namespace namespace. Hopefully all you
need to do is add the following to the root svg element:
xmlns="http://www.w3.org/2000/svg"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]