=changed a lot of the xml handling to xpath, currently disabledoutput functions