ID generator for XML data storing.