How to restrict what children tags should be by using attribute?

Mahora

New Member
I have an snippet XML like this:\[code\]....<cell type='1'> <A>Some text</A></cell><cell type='2'> <B>Some text</B></cell>....\[/code\]How to write a schema that enforces element A to be a child of 'cell' only when 'type' attribute is 1 (B if 2) ?.Thanks!
 
Back
Top