Fixed object xml construction.