on 08-28-2017 7:34 PM
I'm needing to automate the generation of XSD files from XML models. Does anyone have a sample script that will read XML models from the repository and generate XSD files?
Thanks,
Sandy
You need check out the model first.
This is an example.
Assume you have myXML.xsm in myFolder under root in the repository.
Connect to the repository first. The following code generates XSD in C:\Temp\output.txt
Set model = RepositoryConnection.FindChildByPath("myFolder\myXML", PdRMG.Cls_RepositoryModel)
model.CheckOutToFile "C:\Temp\myXML.xsm", 1
Set fso = CreateObject("Scripting.FilesystemObject")
Set f = fso.CreateTextFile("C:\Temp\output.txt", true)
f.writeLine ActiveModel.preview
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.