agreed, well just:
if (flags & XML_Format|XML_NewlinesOnly)