How do I set the org.xml.sax.driver system property to
createXMLReader? I know it can be done on the compiler command line.
However, I would like to do it in my program.
I have tried the command System.setProperty
("org.xml.sax.driver","org.xml.sax.helpers.ParserFactory"
and XMLReader xr = XMLReaderFactory.createXMLReader("org.xml.sax.helpers.ParserFactory"
but neither work.
I get the error:
java.lang.IllegalAccessException: org.xml.sax.helpers.ParserFactory
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:121)
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:96)
at cms.xml.xmljava1.Example1.main(Example1.java:81)
I suspect I am using the wrong SAX Parser. I am using Java Web Services Developer Pack (Version 1_0-ea1)
Anybody offer any help!!!
Thanks in Advance
Jeff Sulman
createXMLReader? I know it can be done on the compiler command line.
However, I would like to do it in my program.
I have tried the command System.setProperty
("org.xml.sax.driver","org.xml.sax.helpers.ParserFactory"
and XMLReader xr = XMLReaderFactory.createXMLReader("org.xml.sax.helpers.ParserFactory"
but neither work.
I get the error:
java.lang.IllegalAccessException: org.xml.sax.helpers.ParserFactory
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:121)
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:96)
at cms.xml.xmljava1.Example1.main(Example1.java:81)
I suspect I am using the wrong SAX Parser. I am using Java Web Services Developer Pack (Version 1_0-ea1)
Anybody offer any help!!!
Thanks in Advance
Jeff Sulman