Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Forcing a parent tag to have at least one child via an XML schema Forcing a parent tag to have at least one child via an XML schemaTo: NULL Date: 10/3/2008 1:37:00 PM I have a document that includes info similar to: <cat> <name>Tiddles</name> <color>Purple</color> <age>12</age> <ageInCatYears>84</ageInCatYears> </cat> ALL elements (including <cat>) are optional. However, <cat> should not exist unless at least one of it children does. How can I specific via an XML schema that <cat> should not exist unless it has at least one child? | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
