XML parser and library