Validating XML file with DTD
HI,
I want to validate my XML file with a DTD file.
I found this https://community.intersystems.com/post/validating-xml but it's with the SAX parser...
Is there an easier solution?
Intersytems Ensemble version 2017.2
Regards,
Guillaume LEPRETRE
Hi Guillaume,
I think the ParseFile method of %XML.TextReader is what you are looking for. I've not tested, but according to the documentation, it should work.
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
Note: the link is to IRIS doc., but should be the same in Ensemble 2017.
Enrico