If stored in a file, it is better to get rid of the extra information inherent in the CML format (stored in CVS), so as not to waste time parsing data:
--year;month;day;id;description;date_entered; 2011;03;12;01;Hello Word;''
If you still want to store in XML, then it would be worth bringing it to a more acceptable form:
<year value="2011"> <month value="01"> <day value="15"> <!-- вариан А --> <item> <id>a</id> <desc>b</desc> <date>c</date> </item> <item> <id>a2</id> <desc>b2</desc> <date>c2</date> </item> <!-- вариан Б --> <item id="a" desc="b" date="c" /> <item id="a2" desc="b2" date="c2" /> </day> <day value="16"> ... </day> </month> <month value="02"> ... </month> </year>
A no-brainer, it is better to choose the names of the tags shorter to reduce the total amount of data, as well as the time spent on their analysis and reading. Therefore, this option will be more optimal:
<item year="x" month="y" day="z"> <id>a</id> <desc>b</desc> <date>c</date> </item>
or
<items year="x" month="y" day="z"> <item id="a" desc="b" date="c" /> </items>
You can easily handle CML with xpath, but if this option does not suit you, you can look for tools that allow you to work with CML as a database (unfortunately, I don’t remember the names).
<месяцгод>07.11<\месяцгод><день>01<\день>
And what's the point of this for xml, if the day does not relate to the month?) Then<месяцгод значение="07.11"><день значение="01" id="01-07-11" date_entered="???">description</день></месяцгод>
- Sh4dow