Pretty much the same answer as I provided to your last question, modified to match your new XML format:
When run on the first sample XML, with the second one saved as "updates.xml", this produces:
f
l
2011-01-02
1
aaa
XXX
2
newName
newContent
3
ccc
ZZZ