switched from libxmljs to xmldom and xpath