move xml parsing to new library