Thank you for your quick response, Hussein - very helpful, as always.

Hussein Shafie schrieb:

 > Yves Forkl wrote:
 >>
>> The warning dialog box [saying "Missing namespace binding"] shows up in a 
>> quite idiosyncratic manner, so it is 
>> rather hard to reproduce. 
> 
> Not at all. A DTD is validated the first time it is loaded. After that,
> the DTD is cached in a validated, serialized, form. If you want to
> reproduce the warning always, simply disable the schema cache:
> http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#cacheOptions
> and you'll the warning appear each time you'll open a document
> conforming to this DTD.

Ah, I see. I forgot about the schema caching, thank you for reminding me of 
that. Due to the fact that the cache is persistent between XXE sessions, I 
hadn't seen the warning for a long time.


>> How can I make sure that this warning never appears again?
>>
> 
> I'm sorry but this cannot be done. Please consider giving up supporting
> questionable DTD features such as:
> 
> "<!ATTLIST root xmlns:myns CDATA #IMPLIED>"

I absolutely agree with you and would love to do that, but our customer just 
insists on delivering XML files which require that pseudo-namespace attribute 
in the DTD.

Do I understand you right that in this situation there is no way for our 
customer to escape that warning every time the schema cache is being re-built, 
once caching is enabled?

And please let me know: in the context of running XXE as an applet, on which 
occasions will the cache re-build?

   Yves
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to