George Armhold wrote:
Hi, some time ago I posted the following message asking about running
Batik with the standard java XML parsers instead of xerces. Can anyone
suggest what might be wrong? I'm sure I'm missing something simple like
an additional property definition.
It looks to me like someone has an xmlns:xml in the document.
Since I think the xml namespace is always defined for namespace
aware processors this might be the problem. I don't know who
is doing this however (I think we do some stuff with the xml
namepsace but I don't think we define the namespace this way).
Can you show the problem document, or element?
Thanks
------------------------------------------------------------------------
Subject:
Re: Java applet for browser integration using Batik
From:
George Armhold <[EMAIL PROTECTED]>
Date:
Wed, 11 Aug 2004 14:27:45 +0200
To:
Batik Users <[EMAIL PROTECTED]>
To:
Batik Users <[EMAIL PROTECTED]>
Thomas DeWeese wrote:
> There are a couple of ways to do this. One is to override
> bridge.UserAgent.getXMLParserClassName to return the name of any
> SAX2 parser.
Hi Thomas. I actually took the approach of including my own
org/apache/batik/util/resources/XMLResourceDescriptor.properties in my
project's jar file.
> The default implementation looks at:
> batik/util/resources/XMLResourceDescriptor.properties for the
> "org.xml.sax.driver" property. I think the JVM parser is
> "javax.xml.parsers.SAXParser"
That didn't work for me, I had to use
org.apache.crimson.parser.XMLReaderImpl. This seemed to work fine for
part of my application. However with one of our tools I get the
following stacktrace. Any idea what this could be about? Is there
some other resource I need to change?
java.io.IOException: Illegal Namespace prefix: "xml".
at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:418)
at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:341)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:228)
at
edu.rutgers.elearning.scribble.ScribbleRecorder.<init>(ScribbleRecorder.java:99)
at edu.rutgers.elearning.presenter.Presenter.<init>(Presenter.java:196)
at edu.rutgers.elearning.presenter.Presenter.main(Presenter.java:1071)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:837)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:797)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:675)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:390)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
at com.sun.javaws.Launcher.run(Launcher.java:167)
at java.lang.Thread.run(Thread.java:534)
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]