test xml construction