implemented the xml parser