?
=?iso-8859-1?q?Andr=E9_Wagner?=
Hello,
I'm using my own personal InputStream (which I named CxInputStream) to
load XML data. This stream read data from a server using a specific
protocol. So this is what I do:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
CxInputStream input = new CxInputStream(path);
document = builder.parse(input);
It works perfectly, except when the XML has a DTD file. Then the
DocumentBuilder tries to load the DTD file from the local filesystem
(to which I don't have access, since I'm running this from a applet).
There's any way I can indicate the DocumentBuilder where to load to
DTD file from, the same way I did with the XML file?
Thanks in advance,
André
I'm using my own personal InputStream (which I named CxInputStream) to
load XML data. This stream read data from a server using a specific
protocol. So this is what I do:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
CxInputStream input = new CxInputStream(path);
document = builder.parse(input);
It works perfectly, except when the XML has a DTD file. Then the
DocumentBuilder tries to load the DTD file from the local filesystem
(to which I don't have access, since I'm running this from a applet).
There's any way I can indicate the DocumentBuilder where to load to
DTD file from, the same way I did with the XML file?
Thanks in advance,
André