I have an xml file(thexml.xml) and it's related dtd(thedtd.dtd) file in res/raw folder.
this is the DOCTYPE of the xmlfile: <!DOCTYPE myApp SYSTEM "thedtd.dtd">
Because the address to the dtd file has been set relatively i get this error:
org.xml.sax.SAXParseException: Relative URI "thedtd.dtd";
can not be resolved without a base URI.
So I am thinking to give the DOCTYPE an absolute path to the dtd file but i don't know what the address is. i tried this
android.resource://com.ssh.mine/raw/thedtd
note: (com.ssh.mine is the package name of my project)
but it didn't work and i got java.net.MalformedURLException. so what should the absolute path to the res/raw folder be...