PeAcHyLiCiOuS
New Member
Here's an XML sample:\[code\]<Search ID="Blah" input="Some search" line1="first line of result" line2="second line of result" line3="third line of result" />\[/code\]The attributes named line1 to line3 are optional and unbound - a given search element could have line attributes all the way up to line99 or something (realistically never higher than 2 digits). Is there any way of specifying a pattern of acceptable attribute names in an XML Schema so that I could validate this, without manually specifying all optional attribute names up to whatever I actually use?Ideally I would like something along the lines of:\[code\]<xs:attribute name="line[0-9][0-9]" type="xs:string" use="optional" />\[/code\]in the schema definition.I suspect this is not possible, but all of the searches I do to try and find out for sure end up finding ways of using patterns on the actual values of the attributes, not their names, so if someone could please confirm whether this is possible or not, that would be great.