Don't parse XML unless we need to