Clean up xml lib