views:

4

answers:

0

Hi,

I have to make an application as a homework for my course for interactive tv using osmosys (implementation of mhp) as middleware.

I'm trying to read an xml file using:

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder(); 
Document doc = db.parse(file);

When I run it with the xletview (an emulator) it says:

java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilder.parse(Lxjava/io/File;)Lorg/w3c/dom/Document;

Can somebody help me out?