Author |
Message
|
nthepak |
Posted: Wed Feb 15, 2012 9:25 pm Post subject: How to convert oagis xsd to a single xsd? |
|
|
 Voyager
Joined: 19 Dec 2005 Posts: 79 Location: India
|
Hi,
We have requirement to convert the oagsi standard xsd schema which has references to other xsd schemas in its folder structure, to a single xsd file. we want this single xsd file to have all the dependent xsd schema definitions defined instead of refering from another schema in the folder structure location.
Can somebody help me out whether it is valid to do such a kind of conversions and if yes then is it possible to do in Altova.
This requirement is because SAP PI does not support oagis standard schema file for parsing a related XML file. Thank you. _________________ BR,
Deepak N |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Feb 16, 2012 6:09 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
I don't think whomever diagnosed the problem is accurate with their proposed resolution. Push back on the troubleshooter. Imports are not the root cause. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqsiuser |
Posted: Thu Feb 16, 2012 6:47 am Post subject: Re: How to convert oagis xsd to a single xsd? |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
There actually is a requirement like that: http://wiki.sdn.sap.com/wiki/display/XI/Converting+XSD+to+SAP-PI+compatible+XSD
Well ... they are inferring the single XSD from (multiple?) (instance) XML(s): "The idea is to create XML instance from XSD. And then later on, we create back the XSD using the XML created from the previous step."
Use XML-Spy or oXygen and do it manually.
Make sure a couple of (representative(!)) sample XML validate (to the old xsds) and then to your newly created one. Make sure you understand how xsd is linked in (<xsd:import> and <xsd:include>) and how to resolve this by directly putting (copy and pasting) the linked xsds into the root xsd.
Read the XML Schema Recommendation Part 1 and Part 2. _________________ Just use REFERENCEs
Last edited by mqsiuser on Thu Feb 16, 2012 7:19 am; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Feb 16, 2012 7:09 am Post subject: Re: How to convert oagis xsd to a single xsd? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqsiuser wrote: |
There actually is a requirement like that: http://wiki.sdn.sap.com/wiki/display/XI/Converting+XSD+to+SAP-PI+compatible+XSD.
Well ... they are inferring the single XSD from (multiple?) (instance) XML(s): "The idea is to create XML instance from XSD. And then later on, we create back the XSD using the XML created from the previous step."
Use XML-Spy or oXygen and do it manually.
Make sure a couple of sample XML validate (to the old xsds) and then to you newly created one. Make sure you understand how xsd is linked in (<xsd:import> and <xsd:include>) and how to resolve this by directly (copy and pasting) the linked xsds into the root xsd.
Read the XML Schema Recommendation Part 1 and Part 2. |
This is wasted effort. SAP handles imports from WSDLs and XSDs. There is no reason to flatten the file. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqsiuser |
Posted: Thu Feb 16, 2012 7:20 am Post subject: Re: How to convert oagis xsd to a single xsd? |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
|
Back to top |
|
 |
|