Subject: | XML-Files must not have external DTD |
'fromFile' and 'parse' do not read in XML-Documents that refer to an external DTD.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE element SYSTEM "myxml.dtd">
<element>
... any valid XML ...
</element>
Without the doctype declaration the methods work as expected.
As soon as the doctype declaration is included, 'toString' yields nothing but
'<?xml standalone="no" version="1.0"?>'