2 // System.Xml.XmlProcessingInstruction
5 // Kral Ferch <kral_ferch@hotmail.com>
11 using System.Collections;
12 using System.Xml.XPath;
16 public abstract class XmlNode : ICloneable, IEnumerable, IXPathNavigable
18 XmlDocument ownerDocument;
23 protected internal XmlNode(XmlDocument ownerDocument)
25 this.ownerDocument = ownerDocument;
32 public virtual XmlAttributeCollection Attributes
38 public virtual string BaseURI
40 get { throw new NotImplementedException (); }
44 public virtual XmlNodeList ChildNodes
46 get { throw new NotImplementedException (); }
49 public virtual XmlNode FirstChild
52 if (LastChild != null) {
53 return LastLinkedChild.NextLinkedSibling;
61 public virtual bool HasChildNodes
63 get { return LastChild != null; }
67 public virtual string InnerText
69 get { throw new NotImplementedException (); }
70 set { throw new NotImplementedException (); }
74 public virtual string InnerXml
76 get { throw new NotImplementedException (); }
77 set { throw new NotImplementedException (); }
81 public virtual bool IsReadOnly
83 get { throw new NotImplementedException (); }
87 public virtual XmlElement this[string name]
89 get { throw new NotImplementedException (); }
93 public virtual XmlElement this[string localname, string ns]
95 get { throw new NotImplementedException (); }
98 public virtual XmlNode LastChild
100 get { return LastLinkedChild; }
103 internal virtual XmlLinkedNode LastLinkedChild
110 public abstract string LocalName
116 public abstract string Name
122 public virtual string NamespaceURI
124 get { throw new NotImplementedException (); }
127 public virtual XmlNode NextSibling
133 public abstract XmlNodeType NodeType
139 public virtual string OuterXml
141 get { throw new NotImplementedException (); }
144 public virtual XmlDocument OwnerDocument
146 get { return ownerDocument; }
149 public virtual XmlNode ParentNode
151 get { return parentNode; }
155 public virtual string Prefix
157 get { throw new NotImplementedException (); }
158 set { throw new NotImplementedException (); }
161 public virtual XmlNode PreviousSibling
167 public virtual string Value
169 get { throw new NotImplementedException (); }
170 set { throw new NotImplementedException (); }
177 public virtual XmlNode AppendChild (XmlNode newChild)
179 if ((NodeType == XmlNodeType.Document) || (NodeType == XmlNodeType.Element)) {
180 LastLinkedChild = (XmlLinkedNode) newChild;
184 throw new InvalidOperationException();
189 public virtual XmlNode Clone ()
191 throw new NotImplementedException ();
194 public abstract XmlNode CloneNode (bool deep);
197 public XPathNavigator CreateNavigator ()
199 throw new NotImplementedException ();
203 public IEnumerator GetEnumerator ()
205 throw new NotImplementedException ();
209 public virtual string GetNamespaceOfPrefix (string prefix)
211 throw new NotImplementedException ();
215 public virtual string GetPrefixOfNamespace (string namespaceURI)
217 throw new NotImplementedException ();
220 object ICloneable.Clone ()
225 IEnumerator IEnumerable.GetEnumerator ()
227 return GetEnumerator ();
231 public virtual XmlNode InsertAfter (XmlNode newChild, XmlNode refChild)
233 throw new NotImplementedException ();
237 public virtual XmlNode InsertBefore (XmlNode newChild, XmlNode refChild)
239 throw new NotImplementedException ();
243 public virtual void Normalize ()
245 throw new NotImplementedException ();
249 public virtual XmlNode PrependChild (XmlNode newChild)
251 throw new NotImplementedException ();
254 public virtual void RemoveAll ()
256 LastLinkedChild = null;
260 public virtual XmlNode RemoveChild (XmlNode oldChild)
262 throw new NotImplementedException ();
266 public virtual XmlNode ReplaceChild (XmlNode newChild, XmlNode oldChild)
268 throw new NotImplementedException ();
272 public virtual XmlNodeList SelectNodes (string xpath)
274 throw new NotImplementedException ();
278 public virtual XmlNodeList SelectNodes (string xpath, XmlNamespaceManager nsmgr)
280 throw new NotImplementedException ();
284 public virtual XmlNode SelectSingleNode (string xpath)
286 throw new NotImplementedException ();
290 public virtual XmlNode SelectSingleNode (string xpath, XmlNamespaceManager nsmgr)
292 throw new NotImplementedException ();
295 internal void SetParentNode (XmlNode parent)
301 public virtual bool Supports (string feature, string version)
303 throw new NotImplementedException ();
307 public abstract void WriteContentTo (XmlWriter w);
310 public abstract void WriteTo (XmlWriter w);