XML parser implementation