XmlDocumentFragment.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
  2. //
  3. // System.Xml.XmlDocumentFragment
  4. //
  5. // Author:
  6. // Daniel Weber ([email protected])
  7. //
  8. // (C) 2001 Daniel Weber
  9. using System;
  10. namespace System.Xml
  11. {
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. public class XmlDocumentFragment : XmlNode
  16. {
  17. // Private data members
  18. // public properties
  19. //===========================================================================
  20. /// <summary>
  21. /// Returns the local name of the node with. For document fragments, it returns "#document-fragment"
  22. /// </summary>
  23. public override string LocalName
  24. {
  25. get
  26. {
  27. return "#document-fragment";
  28. }
  29. }
  30. /// <summary>
  31. /// Get the node name. Document fragments return "#document-fragment".
  32. /// </summary>
  33. public override string Name
  34. {
  35. get
  36. {
  37. return "#document-fragment";
  38. }
  39. }
  40. /// <summary>
  41. /// Overridden. Returns XmlNodeType.DocumentFragment.
  42. /// </summary>
  43. public override XmlNodeType NodeType
  44. {
  45. get
  46. {
  47. return XmlNodeType.DocumentFragment;
  48. }
  49. }
  50. // Public Methods
  51. //===========================================================================
  52. /// <summary>
  53. /// Return a clone of the node
  54. /// </summary>
  55. /// <param name="deep">Make copy of all children</param>
  56. /// <returns>Cloned node</returns>
  57. public override XmlNode CloneNode( bool deep)
  58. {
  59. // TODO - implement CloneNode()
  60. throw new NotImplementedException();
  61. }
  62. /// <summary>
  63. /// Saves all children of the current node to the passed writer
  64. /// </summary>
  65. /// <param name="w"></param>
  66. public override void WriteContentTo(XmlWriter w)
  67. {
  68. // TODO - implement WriteContentsTo(XmlWriter)
  69. throw new NotImplementedException();
  70. }
  71. /// <summary>
  72. /// Saves the current node to writer w
  73. /// </summary>
  74. /// <param name="w"></param>
  75. public override void WriteTo(XmlWriter w)
  76. {
  77. // TODO - implement WriteTo(XmlWriter)
  78. throw new NotImplementedException();
  79. }
  80. // Constructors
  81. //===========================================================================
  82. internal XmlDocumentFragment ( XmlDocument aOwner ) : base (aOwner)
  83. {
  84. }
  85. }
  86. }