Dependencies between attributes and elements

Hello everyone,

Given this simple xml:

<vector size="2">
  <value>1</value>
  <value>3</value>
</vector>

Is there a way to validate the number of <value> elements according to
the vector size attribute?
I'm tempted to say no, so should I make this kind of validation inside
my program?

Thanks,
Joćo

Received on Monday, 6 August 2007 16:02:37 UTC