How can I generate multiple classes from xsd's with common includes?
Asked Answered
I

2

2

Aloha

I received a few nice xsd files which I want to convert to classes (using xsd.exe) All the xsd's have the same includes, like this:

<xs:include schemaLocation="kstypes.xsd" />
<xs:include schemaLocation="ksparams.xsd" />

When I generate a class for each xsd the types declared in these files are duplicated for each original xsd. Is there any easy way to 1) only generate the types in the included xsd's once and 2) make sure all other classes use these types?

-Edoode

Incognito answered 17/12, 2008 at 13:57 Comment(0)
G
0

try the approach outlined here : http://blog.hosca.com/blog/fpmlgen/

Grabble answered 23/11, 2009 at 3:40 Comment(1)
FYI - URL link is no longer active now.Madrigal
S
1

Looking over the documentation, it would appear that the 'best' way (not an easy way!) would be to use the /element:elementname command line switch on the second and subsequent files to specify the types you want classes generated for.

Serpasil answered 17/12, 2008 at 14:26 Comment(0)
G
0

try the approach outlined here : http://blog.hosca.com/blog/fpmlgen/

Grabble answered 23/11, 2009 at 3:40 Comment(1)
FYI - URL link is no longer active now.Madrigal

© 2022 - 2024 — McMap. All rights reserved.