file input

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 UTC