XmlImplementation.cs 596 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // System.Xml.XmlImplementation.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Ximian, Inc.
  7. //
  8. namespace System.Xml
  9. {
  10. public class XmlImplementation
  11. {
  12. public XmlImplementation ()
  13. : base ()
  14. {
  15. }
  16. public virtual XmlDocument CreateDocument ()
  17. {
  18. return new XmlDocument (this);
  19. }
  20. public bool HasFeature (string strFeature, string strVersion)
  21. {
  22. if ((strVersion == "XML") || (strVersion == "xml") // not case-sensitive
  23. && (strVersion == "1.0") || (strVersion == "2.0"))
  24. return true;
  25. else
  26. return false;
  27. }
  28. }
  29. }