I've been one week with the

Hi thanks for reading. I really hope you can help me.

I'm doing a Spanish-English translator using the developer 10.1.3.1

The console mode of the translator works with no problem. It is when I call the translate function through a .JSP where I have trouble. I get:

java.net.MalformedURLException: no protocol: datos.xml

(datos.xml is the database file)

I've been reading forums about this and it looks like it's something to do with a whitespace in the address of the .xml file I'm using. I've already added the "datos.xml" to the project content and it still doesn't work! I also have no whitespace in the file address nor the project has any whitespace.

How can I solve this problem?

[734 byte] By [Makara] at [2007-11-26 15:09:20]
# 1

found the solution

I was using XPath to acces the file. SO... to acces the file I used to name it

InputSource inputSource = new InputSource("datos.xml");

when what I needed to do was to add the "file" specification

InputSource inputSource = new InputSource("file:\\datos.xml");

Makara at 2007-7-8 8:59:53 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...