Build basic xml but print error