I have an XML with following format.
<RootNode>
<Parent>
<Child1>Some text about child 1</Child1>
<Child2>Some text about child 2</Child2>
....
....
<Child5>Some text about child 5</Child5>
....
....
<Childn>Some text about child n</Childn>
</Parent>
</RootNode>
Now I want to validate this xml against xsd.
But the problem is the number and node name of children are not fixed.
Please check following samples of my file
Sample 1: Two children with node name Child1 and Child2
<RootNode>
<Parent>
<Child1>Some text about child 1</Child1>
<Child2>Some text about child 2</Child2>
</Parent>
</RootNode>
Sample 2: Three children with node name Child4 Child5, and Child8
<RootNode>
<Parent>
<Child4>Some text about child 4</Child4>
<Child5>Some text about child 5</Child4>
<Child8>Some text about child 8</Child8>
</Parent>
</RootNode>
I want a to validate the text inside the Child node (which is shown as "Some text about child n") with following rule
Rule: The xml is invalid if any Child node - (Children of Parent) has iner text length more then 256.
It means consider the xml invalid if any child of the "Parent" node has inner text longer then 256 characters
Is this possible using XSD schema validation? Could you please help me creating .XSD file to validate this?
Thanks in advance