build a library of the xml parser