Hi,
I need to validate a XML document where some of the element names are
unnknown.
<xs:any processContents="lax"/> or "skip" allows me to do so.
But: I want to validate those elements - the only thing unknown is the
name of the elements. Especially the attributes are well-known and
need to be validated.
a) Is there any option to use regExp with the name attribute?
b) Or any other way to describe elements with unnkonw names?
I cannot change the XML instance document.
Thanks! Mark
Example data:
<?xml version="1.0"?>
<root>
<WellKnown Type="TypeFromList" Name="anyName">
<UnknownA Type="TypeFromList" Width="200">
<UnknownChildA Type="String"/>
<UnknownChildB Type="String"/>
</UnknownA>
<UnknownB Type="TypeFromList" Width="200">
<UnknownChildC Type="Date"/>
<UnknownChildD Type="Currency"/>
</UnknownB>
</WellKnown>
<WellKnown Type="TypeFromList" Name="anyOtherName"/>
</root>
- how do I validate those Type-attributes of the Unnkown* elements?