|Problems? Is your data what you think it is?|
That's a pretty strange format.
With quotes around the ID attribute, it would be at least a valid XML fragment, and in that case, using a proper parser would be recommended. Without the quotes, it looks more like tagsoup HTML.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In reply to Re^6: read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf