Hi Milof,

milof <[EMAIL PROTECTED]> wrote on 08/18/2006 06:34:25 AM:

> I'm a beginner with batik library and I need to create a program that 
would
> allow me to edit existing svg files and the save them.
> 
> The code that I have written so far doesn't seem to be working. My 
program
> doesn't want to access my svg file, however there are no erros when i
> execute it.

    Your code isn't loading the document:


>       String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
>       String svgURI = new File(inputFilename).toURL().toString();
> 
>       SVGDocument doc;
>       try {
>       doc = (SVGDocument)impl.createDocument(svgURI, "svg", null);

    This will create a document with a root element in
the 'svgURI' namespace (which is the file you want to load).
I suspect you want to replace this line with something like:

        ua = new UserAgentAdapter();
        loader = new DocumentLoader(ua);
        doc = loader.loadDocument(svgURI);

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to