W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

DocumentBuilder.parse(URL) in Applet

From: Marielle Fois <im99_foa@nada.kth.se>
Date: Fri, 21 Jul 2000 04:12:53 -0400 (EDT)
To: www-dom@w3.org
Message-ID: <Pine.GSO.4.21.0007211011310.7126-100000@mumrik.nada.kth.se>
Hi there,

I have got an applet from where I want to parse an xml document
located in a given url, but I am having problems with it. The code I
have is simple:

// assert permission
if (Class.forName("com.ms.security.PolicyEngine") != null)

// parse the xml document
DocumentBuilderFactory docBuilderFactory;
DocumentBuilder docBuilder;
Document doc;

docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilder = docBuilderFactory.newDocumentBuilder();
doc = docBuilder.parse("http://somewhere/somearchive.xml");

And the error report I get from IE5.0 is:

java.lang.IllegalAccessError: com/sun/xml/tree/XmlDocument

Could anyone help me? 

Thanks in advance,
Received on Friday, 21 July 2000 10:24:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC