| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- // -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
- //
- // System.Xml.XmlElement
- //
- // Author:
- // Daniel Weber ([email protected])
- //
- // (C) 2001 Daniel Weber
- using System;
- namespace System.Xml
- {
- public class XmlElement : XmlLinkedNode
- {
- // Private/Protected internal data structures
- //===========================================================================
- private XmlAttributeCollection _attributes;
- // Public Properties
- //===========================================================================
- /// <summary>
- /// Return the XmlAttributeCollection on the Element
- /// </summary>
- public override XmlAttributeCollection Attributes
- {
- get
- {
- // TODO - implement Attributes
- return _attributes;
- }
- }
- // Implement abstract methods of XmlNode
- //=====================================================================
- /// <summary>
- /// Remove all children and attributes. If
- /// </summary>
- public override void RemoveAll()
- {
- // Remove all child nodes
- base.RemoveAll();
- // Remove all attributes
- _attributes.RemoveAll();
- // If we have any default attributes, add them back in with the
- // appropriate namespace, baseURI, name, localName
- // TODO - implement adding default attributes back in XmlElement.RemoveAll()
- }
-
- /// <summary>
- /// Return a clone of the node
- /// </summary>
- /// <param name="deep">Make copy of all children</param>
- /// <returns>Cloned node</returns>
- public override XmlNode CloneNode( bool deep)
- {
- // TODO - implement CloneNode()
- throw new NotImplementedException();
- }
- /// <summary>
- /// Saves all children of the current node to the passed writer
- /// </summary>
- /// <param name="w"></param>
- public override void WriteContentTo(XmlWriter w)
- {
- // TODO - implement WriteContentsTo(XmlWriter)
- throw new NotImplementedException();
- }
- /// <summary>
- /// Saves the current node to writer w
- /// </summary>
- /// <param name="w"></param>
- public override void WriteTo(XmlWriter w)
- {
- // TODO - implement WriteTo(XmlWriter)
- throw new NotImplementedException();
- }
- /// <summary>
- /// Returns the local name of the node with qualifiers removed
- /// LocalName of ns:elementName = "elementName"
- /// </summary>
- public override string LocalName
- {
- get
- {
- // TODO - implement LocalName
- throw new NotImplementedException();
- }
- }
- /// <summary>
- /// Get the qualified node name
- /// derived classes must implement as behavior varies
- /// by tag type.
- /// </summary>
- public override string Name
- {
- get
- {
- // TODO - implement Name
- throw new NotImplementedException();
- }
- }
- public override XmlNodeType NodeType
- {
- get
- {
- return XmlNodeType.Element;
- }
- }
- // ============= Internal calls =============================================
- // Constructors
- // ==========================================================================
- internal XmlElement( XmlDocument aOwnerDoc ) : base(aOwnerDoc)
- {
- _attributes = new XmlAttributeCollection(aOwnerDoc, this, null);
- }
- } // class
- } //namespace
|