Return an XDocument for xml files.

Case-insensitive pattern matching.