2 // System.Xml.XmlAttribute
5 // Jason Diamond (jason@injektilo.org)
7 // (C) 2002 Jason Diamond http://injektilo.org/
14 public class XmlAttribute : XmlNode
18 private XmlElement ownerElement;
19 private XmlLinkedNode lastChild;
20 private string localName;
21 private string namespaceURI;
22 private string prefix;
28 protected internal XmlAttribute (
32 XmlDocument doc) : base (doc)
35 this.localName = localName;
36 this.namespaceURI = namespaceURI;
44 public override string BaseURI {
46 throw new NotImplementedException ();
51 public override string InnerText {
53 throw new NotImplementedException ();
57 throw new NotImplementedException ();
62 public override string InnerXml {
64 throw new NotImplementedException ();
68 throw new NotImplementedException ();
72 public override string LocalName {
78 public override string Name {
80 return prefix != String.Empty ? prefix + ":" + localName : localName;
84 public override string NamespaceURI {
90 public override XmlNodeType NodeType {
92 return XmlNodeType.Attribute;
96 public override XmlDocument OwnerDocument {
98 return base.OwnerDocument;
102 public virtual XmlElement OwnerElement {
109 public override XmlNode ParentNode {
115 public override string Prefix {
122 public virtual bool Specified {
124 throw new NotImplementedException ();
128 public override string Value {
130 XmlNode firstChild = FirstChild;
131 if (firstChild == null)
133 return firstChild.Value;
137 XmlNode firstChild = FirstChild;
138 if (firstChild == null)
139 AppendChild (OwnerDocument.CreateTextNode (value));
141 firstChild.Value = value;
150 public override XmlNode CloneNode (bool deep)
152 throw new NotImplementedException ();
155 internal void SetOwnerElement (XmlElement ownerElement)
157 this.ownerElement = ownerElement;
161 public override void WriteContentTo(XmlWriter w)
163 throw new NotImplementedException ();
167 public override void WriteTo(XmlWriter w)
169 throw new NotImplementedException ();
174 internal override XmlLinkedNode LastLinkedChild {