On Mon, 2007-04-09 at 21:11 +0200, Christian Thalinger wrote:
> On Mon, 2007-04-09 at 19:17 +0200, Christian Thalinger wrote:
> > Ok, here we go:
> >
> > input.systemId=file:/home/twisti/cacao/spec/jbb2005/xml/template-document.xml
> > ids.systemId=jbb-document.dtd
> > url=jbb-document.dtd
>
> This is the output before Chris' patch:
>
> input.systemId=file:/home/twisti/cacao/spec/jbb2005/xml/template-document.xml
> ids.systemId=file:/home/twisti/cacao/spec/jbb2005/xml/jbb-document.dtd
> url=file:/home/twisti/cacao/spec/jbb2005/xml/jbb-document.dtd
Ok, finally I was able to build a testcase.
- twisti
---
[EMAIL PROTECTED]:~/tmp/xml$ cat test.java
import javax.xml.parsers.*;
import org.w3c.dom.*;
public class test {
public static void main(String[] argv) throws Throwable {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document templateDocument = builder.parse("test.xml");
}
}
[EMAIL PROTECTED]:~/tmp/xml$ cat test.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "test.dtd">
<test>
</test>
[EMAIL PROTECTED]:~/tmp/xml$ cat test.dtd
<?xml version="1.0" encoding="UTF-8"?>