Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - restrict tag names to a pattern? [Thread Next] Re: restrict tag names to a pattern?To: NULL Date: 9/4/2008 5:48:00 PM zmunkz wrote: > 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... No, that is not possible with the W3C XML schema language. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
