https config error xml.reader
Hi
on this code
set reader=##class(%XML.Reader).%New()
set statuscode=reader.OpenFile(file)
if $$$ISERR(statuscode) {do $System.Status.DisplayError(statuscode) quit $$$NULLOREF}
I got this error "unable to open file 'https://www.musicxml.org/dtds/partwise.dtd'"
or using the xml schema wisard i got the error https is active but no configuration found.
where do I have configure it?
Comments
To use httpS:// in xml schema wizard you need to definde an SSL configuration in SMP System > Security Management > SSL/TLS Configuration.

but I doubt that XML Schema Wizard will do anything useful with a .dtd definition.
It's a url not a file so you need to use OpenURL for that:
set reader=##class(%XML.Reader).%New()
set httprequest=##class(%Net.HttpRequest).%New()
set httprequest.SSLConfiguration="...."
set status=reader.OpenURL("https://.....",,httprequest)But as @Robert Cemper pointed out it's a dtd file and so would not be parsed by XML reader.
If you want to generate classes automatically from XML schema, you'll need XSD files. Documentation.
you need to specify SSLConfiguration property of %XML.Reader that points to valid SSL configuration to be used to access https://www.musicxml.org [1]
Or you can just disable entity resolution: Disabling Entity Resolution
<everything others have already said> + try to look for *.xsd files on your www.musicxml.org site