>>>>> "TK" == Thierry Kormann <[EMAIL PROTECTED]> writes:
>> SAXSVGDocumentFactory.createDocument(InputSource)!!! Why do we need
>> the uri for creating an SVGDocument???
TK> Batik needs the URI of the SVG document to be able to resolve
TK> relat
> SAXSVGDocumentFactory.createDocument(InputSource)!!! Why do we
> need the uri
> for creating an SVGDocument???
Batik needs the URI of the SVG document to be able to resolve relative URIs
that can specified in the document (such as xlink:href on a ,
...).
Hi!
A very simple question! I have an InputSource which is the stream of a
socket. I want to read the SVG data from this stream and produce a SVGDocument
which I can visualize with JSVGCanvas.
--
private SVGDocument readSVGData(InputSource is) {
...
// SVGDocument doc
Hi
> > private SVGDocument doc2svgDoc (Document doc) {
> > SVGDocument svgDoc;
>
> svgDoc =
> (SVGDocument)org.apache.batik.dom.util.DOMUtilities.deepCloneDocument(doc,
> org.apache.batik.dom.svg.SVGDOMImplementation.getDOMImplementation());
&g
> From: Ahmad Morad [mailto:[EMAIL PROTECTED]]
> Sent: vendredi 1 mars 2002 11:21
> To: [EMAIL PROTECTED]
> Subject: SVGDocument
>
>
> Hi,
>
> In my Applikation I read the visualization from a socket. I read the
> XML-Content from the Inputstream and produce a dom Do
SVGDocument object.
In the batik API, the SVGDocument is a (dom) Document!
So the type cast
Document doc;
SVGDocument svgDoc = (SVGDocument) doc;
must be correct! However I got type a cast Ecception. It sounds
to be a small a problem, but I don't really find a way how to
create a SVGDoc
rException
{
// Muß herausfinden wie ich aus dem DOM einen SVGDocument erzeuge
// SVGDocument node = (SVGOMDocument) svgNode ;
DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
SVGOMDocument node = new SVGOMDocument(null, impl) ;
// nod