Question Padmaja Konduru · Sep 12, 2023

How to convert XML schema to class files in VS Code

Thank you for your time to read this, 

Could you please guide , how to import XML schemas in VS Code to class files? 

Thanks,

Product version: IRIS 2020.1
$ZV: IRIS for Windows (x86-64) 2020.1 (Build 215U) Mon Mar 30 2020 20:14:33 EDT [HealthConnect:2.1.0]

Comments

Pravin Barton · Sep 12, 2023

If your VS Code workspace has an active connection to an ObjectScript server, you can do this:

  • Open the local XML file in VS Code
  • Right click and choose "Preview XML as UDL"
  • In the preview window, right click and choose "Import and Compile Current File"
0
John Murray · Sep 12, 2023

I guess you are looking for a way to launch the XML Schema Wizard add-in that Studio offers.

Try adapting the advice at https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cl… for adding a custom entry to the Server Actions menu. In this case the entry in the "links" object within "objectscript.conn" should be:

"Open XML Schema Wizard": "${serverUrl}/isc/studio/templates/%25ZEN.Template.AddInWizard.XMLSchemaWizard.cls?$NAMESPACE=${ns}"
0