M
Martin DeMello
I'm using the REXML stream parser to read in an xml file and check the
attributes as I go. If a check fails, I want to print out the line
number in the XML file that contains the offending element - is that
possible?
e.g.
<foo>
<bar
baz="5" <--- should be between 1 and 3
quux="hello"
/>
</foo>
I want to print out "value of attribute 'baz' should be between 1 and 3
in line 3"
martin
attributes as I go. If a check fails, I want to print out the line
number in the XML file that contains the offending element - is that
possible?
e.g.
<foo>
<bar
baz="5" <--- should be between 1 and 3
quux="hello"
/>
</foo>
I want to print out "value of attribute 'baz' should be between 1 and 3
in line 3"
martin