Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: restrict tag names to a pattern? restrict tag names to a pattern?To: NULL Date: 9/4/2008 8:07:00 AM Does anyone know if an XSD can define tags that match a pattern? I know I can setup restrictions on the values of a tag, but I want to control the tag names themselves. For example, I would like this to validate against my XSD (the child tags are required to start with "var-" but can end in anything): <some-parent> <var-FOO>value</var-FOO> <var-BAR>value</var-BAR> </some-parent> So this one would be no good: <some-parent> <FOO>value</FOO> <va-BAR>value</va-BAR> </some-parent> There must be a way to do this, I just can't find it anywhere... Thanks in advance for the help! | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
