[xsd-users] xsd does not like my xsd schema file

Ramon F Herrera ramon at forcewise.com
Mon Jan 18 18:26:32 EST 2010


Hello,

I am a recent convert to xsd. I was thrilled when I discovered it,
but haven't been able to make much progress with my XML files.

My XML files are very similar, and relatively large (repetitive is
a more accurate term). The problem that I have is that xsd does not
accept the xsd schema files that I have provided, or sometimes it
accepts them but the generated source code does not compile.

I used the "hello" example as an initial basis. It seems that the 'hello.xsd'
file must be built following certain conventions (IOW, I cannot simply use
an automatically generated xsd file), such as creating a complex type
named 'hello_t'.

Qustion: is there a sample xsd more complex/realistic than the
'hello.xsd' provided?

Unfortunately, the company that produces thet XML file does not provide a
corresponding XSD schema, so I had to generate one with Stylus Studio.
This automatically generated file contains a lot of statements like this:

<xs:element ref="some_element_down_in_the_file"/>

and xsd does not seem to handle those 'future' references.

Thanks for sharing your expertise...

Regards,

-Ramon



More information about the xsd-users mailing list