Link to home
Start Free TrialLog in
Avatar of cybernation989
cybernation989

asked on

Reading XML Data

Im trying to process data from a very large XML file from a file system... I was looking at XmlValidatingReader but someone said it was out dated. Whats faster?

XmlValidatingReader
XmlTextReader
XMLNodeReader

Someone said use the "XMLReader class and call the Create method to create a new instance" but not sure why
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Create method is factory method and used to create appropriate instance of XmlReader depending on your stream and parameters. There can be any type of streams (network, or file system) with any encoding. Created XmlReader class will depend on parameters you passed here. That can be XmlTextReaderImpl without validation, with Dtd validation, or XsdValidatingReader. Encoding will be determined automatically.

You always can use Lutz Roeder's .NET Reflector and disassembly .NET code in any language you want, to know what method actually does.

Good luck.