added weight dataxml and unit tests