XmlImplementation.cs 630 B

12345678910111213141516171819202122232425262728293031323334
  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. [MonoTODO]
  17. public virtual XmlDocument CreateDocument ()
  18. {
  19. // return new XmlDocument (this);
  20. return null;
  21. }
  22. public bool HasFeature (string strFeature, string strVersion)
  23. {
  24. if ((strVersion == "XML") || (strVersion == "xml") // not case-sensitive
  25. && (strVersion == "1.0") || (strVersion == "2.0"))
  26. return true;
  27. else
  28. return false;
  29. }
  30. }
  31. }