[Pharo-project] XML and DTD

Torsten Bergmann astares at gmx.de
Fri Apr 29 14:02:14 CEST 2011

AFAIK there are various possibilities to check an XML:
 a) using an internal DTD
 b) using an external DTD (in a file)
 c) using an external schema
 d) mixing internal dtd and external dtd

To validate using an internal DTD (a) the validation
on the parser has to be set to true. Thats all, at least
in Java:

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

Havent tried the Pharo implementation, dont know if it is
complete or not. Maybe a) is at least supported.

Only Michael Rüger (Impara.de) may be able to tell you 
since he wrote the original code AFAIK. 

You can also dig through the code or try an example
to see if the setting #isValidating: has any effect.

Did you check the unit tests on squeaksource.com/XMLSupport
Maybe they are useful too.


Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

More information about the Pharo-project mailing list