Second version of xml parser