Complete XML parser.