XmlElement.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
  2. //
  3. // System.Xml.XmlElement
  4. //
  5. // Author:
  6. // Daniel Weber ([email protected])
  7. //
  8. // (C) 2001 Daniel Weber
  9. using System;
  10. namespace System.Xml
  11. {
  12. public class XmlElement : XmlLinkedNode
  13. {
  14. // Private/Protected internal data structures
  15. //===========================================================================
  16. private XmlAttributeCollection _attributes;
  17. // Public Properties
  18. //===========================================================================
  19. /// <summary>
  20. /// Return the XmlAttributeCollection on the Element
  21. /// </summary>
  22. public override XmlAttributeCollection Attributes
  23. {
  24. get
  25. {
  26. // TODO - implement Attributes
  27. return _attributes;
  28. }
  29. }
  30. // Implement abstract methods of XmlNode
  31. //=====================================================================
  32. /// <summary>
  33. /// Return a clone of the node
  34. /// </summary>
  35. /// <param name="deep">Make copy of all children</param>
  36. /// <returns>Cloned node</returns>
  37. public override XmlNode CloneNode( bool deep)
  38. {
  39. // TODO - implement CloneNode()
  40. throw new NotImplementedException();
  41. }
  42. /// <summary>
  43. /// Saves all children of the current node to the passed writer
  44. /// </summary>
  45. /// <param name="w"></param>
  46. public override void WriteContentTo(XmlWriter w)
  47. {
  48. // TODO - implement WriteContentsTo(XmlWriter)
  49. throw new NotImplementedException();
  50. }
  51. /// <summary>
  52. /// Saves the current node to writer w
  53. /// </summary>
  54. /// <param name="w"></param>
  55. public override void WriteTo(XmlWriter w)
  56. {
  57. // TODO - implement WriteTo(XmlWriter)
  58. throw new NotImplementedException();
  59. }
  60. /// <summary>
  61. /// Returns the local name of the node with qualifiers removed
  62. /// LocalName of ns:elementName = "elementName"
  63. /// </summary>
  64. public override string LocalName
  65. {
  66. get
  67. {
  68. // TODO - implement LocalName
  69. return String.Empty;
  70. }
  71. }
  72. /// <summary>
  73. /// Get the qualified node name
  74. /// derived classes must implement as behavior varies
  75. /// by tag type.
  76. /// </summary>
  77. public override string Name
  78. {
  79. get
  80. {
  81. // TODO - implement Name
  82. return String.Empty;
  83. }
  84. }
  85. public override XmlNodeType NodeType
  86. {
  87. get
  88. {
  89. return XmlNodeType.Element;
  90. }
  91. }
  92. // ============= Internal calls =============================================
  93. } // class
  94. } //namespace