Hello,
I have been given an XML schema (.xsd) that I have to follow when sending information to an external source. I am able to read this information into a Prodataset using the READ-XMLSCHEMA method, but this definition will not change and I would prefer not taking the run-time hit of loading/using a dynamic Prodataset.
Is there any way that I can read this definition in once ahead of time using READ-XMLSCHEMA, and call some sort of write method that will give me a compatible static schema definition like so:
DEFINE TEMP-TABLE ttMyTable NO-UNDO NAMESPACE-URI "foo"
FIELD b AS INTEGER XML-NODE-NAME "bar".
DEFINE DATASET ...
that I can then use as a static definition?
Thank you,
STEVEN SEAGAL
Is there any way that I can read this definition in once ahead of time using READ-XMLSCHEMA, and call some sort of write method that will give me a compatible static schema definition like so:
Haven't tried it in a while, but you may try
%DLC%\bin\bproxsdto4gl
Please let us know if that works for you
Yes, that worked perfectly! I thought it was possible or else I wouldn't have asked; I now remember seeing this utility a very long time ago.
Sorry I forgot my password, otherwise I would mark this as answered (created a new acct).