Multiple Types in XSD?

Hi there.

Section 2.2.3 ("Naming Conflicts") of XML Schema Part 0: Primer
seems to suggest to me that the only way I can define an element
as either one thing or another is by using different namespaces.

Am I correct in thinking this or is there a more elegant solution?

I need to capture something along the lines of:

Either
	<list>
		<name>foo</name>
		<data>bar</data>
	</list>
or
	<list name="foo">
		<data>bar</data>
	</list>

I was not the designer....

Many thanks in anticipation
Lee Goddard

Received on Monday, 25 February 2002 04:12:37 UTC