Print

Print


Here is my document:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE hello SYSTEM "hello.dtd">


Here is my DTD:

<!ELEMENT hello (#PCDATA)>
<!ENTITY freddy "hellO">


All well with a validating parser:

   xmllint --valid --noout foo.xml

but if I drop validation, I get

[127]/tmp:xmllint  --noout foo.xml
foo.xml:3: parser error : Entity 'freddy' not defined
<hello>&freddy;</hello>


This seems to me an unacceptable state of affairs, which
is why I don't want to use entities.

Sebastian