haxe.xml.check : how to write "any child nodes are fine" ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

haxe.xml.check : how to write "any child nodes are fine" ?

Antoine Gersant
Hello,

I'm trying to validate an Xml structure and at some point I would like to have a rule that will check a node's name and attributes but not apply any kind of rule on its child nodes.

Example :
<?xml version="1.0" encoding="UTF-8"?>
<myNodeWithASpecificName importantAttribute="value">
    <!--I dont care about what is here-->
</myNodeWithASpecificName>

How would you do this ?

--
haXe - an open source web programming language
http://haxe.org