I am using Sarissa to convert a string of XML into a DOM document object. Everything is working except that Sarissa is completely ignoring my DTD. Deviations from the DTD rules are not noticed, nor do I see any messages about the DTD not being found.
My XML starts like this:
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE workspace SYSTEM "dtd/config.dtd">
and my JavaScript looks like this:
function toXML(str) {
var responseDoc = (new DOMParser()).parseFromString(str, "text/xml");
...
}
How can I get Sarissa to use the DTD?