added return values to xml parser