Skip to Content

Merging 2 XSDs

Hello Experts,

I need to merge 2 XSDs into one. I have got 2 XMLs that I need to convert to XSDs. Then I need to merge these 2 XSDs. I have to first convert these 2 XMLs into XSDs. How to do this?

Secondly as a practise I tried to import on XSD as External Definition and got some error kind of thing in the type column of the imported SXD so I checked if there are any XSDs being referred in the XSD imported. I had 3 different XSDs available . So I copied the type in the External Definition and searched in all the 3 XSDs. Now the questions start

1. if I come to know that the type is there XSD1 then how to refer it in imported XSD

2. How to come to know if XSD1 is referring to some XSD and if so how to refer that referenced XSD in XSD1

Really appreciate your valuable inputs on this.

Thanks in advance, Vikas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 26, 2017 at 07:13 AM

    Hi,

    You have several online tools to work with XSDs.

    To generate XSD from XML:

    http://www.freeformatter.com/xsd-generator.html

    To merge XSDs, you can use Oxygen XML or to try with this java code

    https://technet.microsoft.com/en-us/library/ms190756(SQL.90).aspx

    Refering your last questions you can work with the XSD INCLUDE element:

    http://www.w3schools.com/xml/el_include.asp

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 27, 2017 at 07:24 PM

    Thanks Inaki, There are 6 XSDs ,I need to find out which XSD is the one in which all the XSDs are referred. Need to merge all these 6XSDs to create a XSD schema.

    How to do it?

    Thanks in advance

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 28, 2017 at 12:12 AM

    Hello Experts,

    Any help please?

    Thanks in advance,

    Vikas

    Add comment
    10|10000 characters needed characters exceeded