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

file input

From: Christopher J Sassons <msc37cjs@cs.bham.ac.uk>
Date: Wed, 04 Aug 1999 14:45:17 +0100
Message-ID: <37A843ED.48DA@cs.bham.ac.uk>
To: www-dom@w3.org
I hope there is someone out there who can help me.  I am trying to read
in a file called hamlet.xml using the Sun Parser.  The following code is
always throwing errors.

Can anyone tell me how to use the dom to read in files?

InputSource	input;
XmlDocument	doc;

input = Resolver.createInputSource (hamlet.xml);

 doc = XmlDocument.createXmlDocument (input, true);

Chris
Received on Wednesday, 4 August 1999 09:45:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT