Is it possible to define XML schemata with node names specified via regular expressions?

Posted by MartyIX on Stack Overflow See other posts from Stack Overflow or by MartyIX
Published on 2010-04-24T21:31:43Z Indexed on 2010/04/24 22:33 UTC
Read the original article Hit count: 181

Filed under:
|

Hello,

I know it is probably a question against XML philosophy but still is it possible to define schemata for XML like this:

<Root>
  <arbitrary-name-of-node>
   <Name></Name>
   <Position></Position>
   <!-- ... -->
  </arbitrary-name-of-node>

  <arbitrary-name-of-node>
   <Name></Name> 
   <Position></Position>
   <!-- ... -->
  </arbitrary-name-of-node>
</Root>

where arbitrary-name-of-node matches regular expression [a-zA-Z0-9]?

Thanks for an answer!

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xml-schema