New XMLParser print function and tests.