The following example demonstrates usage of the .NET XmlReader class. It is a direct translation of a C# example.


XmlReader.Create is actually a static method in .NET called Create and not the constructor. C# does not use the keyword Create for constructors. To avoid conflict with the commonly used Create name in Delphi for most constructors, CrossTalk will alias any method named Create to Create2. That is why in the above example Create2 is used instead of Create.

In this example, Create is a class factory and not a constructor.