Page 1 of 1

Generating XML files Dynamic XSDs

Posted: Tue Oct 16, 2018 10:26 am
by koteec
Hi,

I have a requirement where in I need develop a DS PX Job which will generate the XML files based on different XSD, this XSD should be dynamic, which means that, the should not be any changes to the job when the XSD structure changes. is this possible? have anyone faced this kind of scenario? please advice.

Posted: Wed Oct 17, 2018 5:48 pm
by eostic
Not really possible, because an xsd could mean structure change, different groupings, different hierarchy, multiple leafs, etc. It's not like a "schema" change in a relational environment. ....and the Stages take that into account and their metadata isnt dynamic on the links or in the assembly of the Hierarchical Stage.

"if" the xml is always fairly simple, you "might" be able to do something with the old xml stages, the xml Transformer in particular, which uses raw xslt at its core, but that will prove to be very difficult.

Describe how flexible it has to be, and how complex the xml is, and maybe there are some alternate solutions.

Ernie

Posted: Thu Oct 18, 2018 5:09 am
by chulett
I was just going to go with "no". :wink:

Posted: Thu Oct 18, 2018 7:28 am
by eostic
yeah.. a lot of it depends though, on "how dynamic"? For example, if it can be one of (say) 8 xsds...then just have 8 instances of the xmlOutput Stage or the Hierarchical Stage (actually, you could probably do it in one big hierarchical stage instance, but I would prefer multiples, just for maintainability)...... but in that case, the dynamic is among "n" "known" xsd's.....already imported, vetted, and understood, parsed and loaded into memory. ...then branch accordingly when you know which one you need.

If it is entirely dynamic, then it doesn't make much sense ...there are vastly too many variables.

Ernie

Posted: Sat Oct 20, 2018 1:01 pm
by ray.wurlod
Who gave you this requirement? Get them to justify it.