[xml] Loading the DTD external subset



Dear Daniel, All,

I'm more than a bit tired, so my problems may originate between my 
ears, but...

I have a simple xml file to load over http:

<?xml version="1.0"?> 
<!DOCTYPE default SYSTEM "/en/i18n.dtd">
<root>
<navbar>
<button ID='back' img='back.png' tooltip='&BACK.TT;' 
text='&BACK.BT;'/>
<button ID='forward' img='forward.png' tooltip='&FORWARD.TT;' 
text='&FORWARD.BT;'/>
</navbar>
</root>

At "/en/i18n.dtd" on the same server resides the DTD, which defines the 
entities seen above.

Using the SAX parser of libxml2 2.2.11, the DTD will not be loaded, giving 
the message that "/en/i18n.dtd" cannot be opened. 

So it, seems the parser fails to build an absolute URL from the original 
URL and "/en/i18n.dtd".

Am I missing something? What should I do to make this work?

Regards,
Peter Jacobi








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]