C
Cambridge Ray
The question is so abstract, I guess I have to illustrate. One of my
XML files contains a set of rectangular coordinates:
<reference>
<line x1="416" y1="6436" x2="416" y2="3924" />
<line x1="420" y1="6436" x2="420" y2="3924" />
<line x1="1500" y1="5388" x2="1500" y2="4452" />
<line x1="1504" y1="4436" x2="1504" y2="3924" />
<line x1="2884" y1="5388" x2="2884" y2="4456" />
<line x1="412" y1="4436" x2="412" y2="3932" />
</reference>
I would like to make sure that every X2 is greater than or equal to
its X1 companion. Same for Y2 and Y1. Is this something that can be
easily checked at the XML level, or should I perform such check after
the XML file is read and parsed?
I use Xerces-C++.
TIA,
-Ramon
XML files contains a set of rectangular coordinates:
<reference>
<line x1="416" y1="6436" x2="416" y2="3924" />
<line x1="420" y1="6436" x2="420" y2="3924" />
<line x1="1500" y1="5388" x2="1500" y2="4452" />
<line x1="1504" y1="4436" x2="1504" y2="3924" />
<line x1="2884" y1="5388" x2="2884" y2="4456" />
<line x1="412" y1="4436" x2="412" y2="3932" />
</reference>
I would like to make sure that every X2 is greater than or equal to
its X1 companion. Same for Y2 and Y1. Is this something that can be
easily checked at the XML level, or should I perform such check after
the XML file is read and parsed?
I use Xerces-C++.
TIA,
-Ramon