I would like to learn the difference between XMLReader.Create and new XMLTextReader() to read XML. Why would I choose one over the other?
Is there a performance difference?
I know XMLReader is an abstract type for XMLTextReader, at least that is what I read before, but I saw somewhere people suggested using XMLReader.Create() methods rather than new XMLReader() instance.
Thanks in advance…
Sincerely.
XmlReader.Createallows you to specifyXmlReaderSettings, which none of theXmlTextReaderconstructor overloads do.