cateyes
cateyes

Reputation: 6158

Tools for merging multiple xsd files

I've got a XML schema which is split to multiple XSD files. Now we need to merge them into one big XSD file. Anyone knows a good tools I can use to do it? Manually merging would be too cumbersome, and error-prone.

Thanks very much.


To make the question a bit clearer: What I'm facing is that

the initial Main XSD's struct:

-root node - 1st level node 1 - 2nd level node 1
                              - 2nd level node 2
           - 1st level node 2 - 2nd level node 3
                              - 2nd level node 4
                              - 2nd level node 5

now, after split, it become two xsd files:

-root node - 1st level node 1 - 2nd level node 1
                              - 2nd level node 2
           - 1st level node 2 - 2nd level node 5

-root node - 1st level node 2 - 2nd level node 3
                              - 2nd level node 4

the problem is that I use .net xsd.exe tool to generate classes from those xsd files. After splitting to 2 xsd files which are compensatory, when I use xsd.exe to generate classes again, it will produce conflict classes for the root level's and 1st level's nodes.

so I need a tool to merge these XSD files into a single one again for generating classes.

Any ideas?

Upvotes: 9

Views: 8853

Answers (1)

user34411
user34411

Reputation:

We use oXygen. Excellent XSD authoring tool (amongst other things).

Upvotes: 1

Related Questions