How to tell libxml-ruby about external entity files?

I am trying to check with libxml-ruby DTD#validate , but I keep getting the following warnings:

 Warning: failed to load external entity "xhtml-lat1.ent" at :29. Warning: failed to load external entity "xhtml-symbol.ent" at :34. Warning: failed to load external entity "xhtml-special.ent" at :39. 

I wouldn’t mind if I didn’t use things like … which are defined in them, as a result of which my XHTML will be invalid.

How to report DTD about these additional files? I tried to start from the directory containing the .dtd file and all .ent s, but this does not help.

+4
source share
1 answer

Reading Release Notes I suspect you need to either use

 XML.default_substitute_entities = true 

or

 XML.default_load_external_dtd = true 

or both.

-1
source

All Articles