cache XML parsing