tools : xmlpg.py