validation by types not by names

Hello!

I have a little bizarre xml design where element names are not persistent but can be different in every document. The only persistent part is root element and an elements types, e.g.

<user-defined-name1 xsi:type="structure" attr1="value">
	<user-defined-name2 xsi:type="text-field" attr2="value"/>
	<user-defined-name2 xsi:type="text-field" attr2="value"/>
</user-defined-name1>

How can I validate such documents?

---
Oleg Tkachenko,
Multiconn International, Israel 

Received on Tuesday, 11 December 2001 16:01:31 UTC