much thanks for help,
however even though the svg file is being propely loaded I cannot save the
changes that i'm making inside it (i'm not sure if the changes are not being
made or if i just can't save them).
What should I do to properly edit the svg document?
thomas.deweese wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/beginner%3A-loading-svg-file-problem-tf2126519.html#a5869941
Sent from the Batik - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]