add some infrastructure for XML parsing.