How to export/import XSD

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
cosec
Premium Member
Premium Member
Posts: 230
Joined: Tue May 08, 2007 8:10 pm

How to export/import XSD

Post by cosec »

Hi,

I would like to find out how to export/import xsd from an XML stage Thanks.

Regards,
Hazmar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Do you mean the xslt? Or the XPath Expressions generated from the xsd? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
cosec
Premium Member
Premium Member
Posts: 230
Joined: Tue May 08, 2007 8:10 pm

Post by cosec »

i meant the xsd..

based on the xsd i need to check if there are validations for certain columns.

e.g. column QTY can accept values between 1.00 and 10.00 only.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

The feature for validation is in the Stage..... the xsd is merely "available" on disk and indicated within the document that you are reading (there is an attribute called schemaLocation in the header or sometimes NoNamespaceSchemaLocation that will point to a full qualified name of the xsd)....the xsd must already exist, so there is no "import" or "export".

Unless you are in 8.5 --- then everything lives and breathes on an xsd, and within the Assembly, you import the xsd (or can export it also).

Assuming you are talking about 7.x or 8.1, you will need an xsd....you can generate one from your current document, and then add the validation rules yourself with many tools on the web, but it's likely that the designer for your xml already has an xsd.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply