XmlReader extension methods.