Altova Mailing List Archives

an Schema for this xml?

From: "Marcos Mayorga" <marcos.mayorga@-------------.--->
To: <xmlschema-dev@--.--->
Date: 8/30/2002 12:05:00 PM

Please i can't resolve a XML-Schema for the following xml:

	<myelement name="n1" a="0" b="1">
		<mynestedelement c="2"/>
	<myelement name="n2" a="0" b="1">
		<mynestedelement c="2"/>
	<myelement href="doc2.xml" path="mycontainer/myelement#n3"/>

where attributes name, a and b are required and mynestedelement is also required.

at the other side, attributes href and path are required, and is simpleContent

how can write an schema where an element has two ways of be described?

thanks in advance
May, DrMay

From xmlschema-dev-request@t... Fri Aug 30 06:02:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.