I'm trying to parse an XML-document and validate it against DTD.
If I got it right, I have to do it like this:
....
InputSourse is = new InputSource(...);
is.setSystemId("location of the dtd"
xmlParser.parse(is);
But despite of the form of the DTD-file I get following error:
org.xml.sax.SAXParseException: External parameter entity "%[dtd];" has characters after markup.
I tried to find out what that error means, but only found one page: and that didn't offer much help
I would be pleased of any help...
If I got it right, I have to do it like this:
....
InputSourse is = new InputSource(...);
is.setSystemId("location of the dtd"
xmlParser.parse(is);
But despite of the form of the DTD-file I get following error:
org.xml.sax.SAXParseException: External parameter entity "%[dtd];" has characters after markup.
I tried to find out what that error means, but only found one page: and that didn't offer much help
I would be pleased of any help...