XML parser sample code.