Page 1 of 1

How to export/import XSD

Posted: Mon Oct 25, 2010 9:39 pm
by cosec
Hi,

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

Regards,
Hazmar

Posted: Mon Oct 25, 2010 9:46 pm
by chulett
Do you mean the xslt? Or the XPath Expressions generated from the xsd? :?

Posted: Mon Oct 25, 2010 11:46 pm
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.

Posted: Tue Oct 26, 2010 5:53 am
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