First working XML parser