You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Liping Jiang <lj...@euronetworldwide.com> on 2001/03/15 15:32:35 UTC

How to define generic element in xml schema?

Is there a way to define a generic element for the xml element like
<TagName>value<</TagName>?  

I want to apply schema to the following situations:

<dependent>
	<attributes>
		<type>Checking</type>
		<amount>800.00</amount>
		<currency>USD</currency>
	</attributes>
</dependent>

where the tag names for the attributes may vary. The schema data type "any"
seems to cover this.  But I am not sure if there is a better way to define
this.  

Thanks in advance!

Liping Jiang
Euronet Worldwide
Phone: 913-327-4205
Fax: 913-327-1921