5 // Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
\r
7 // (C)2003 Atsushi Enomoto
\r
13 using System.Collections;
\r
14 using System.Collections.Specialized;
\r
15 using System.ComponentModel;
\r
17 using System.Security.Policy;
\r
18 using System.Xml.Schema;
\r
19 using System.Xml.XPath;
\r
20 //using Mono.Xml.XPath2;
\r
21 //using MS.Internal.Xml;
\r
23 namespace System.Xml
\r
25 public abstract class XPathEditor : XPathNavigator2, IXPathEditor
\r
27 protected XPathEditor ()
\r
31 public abstract XPathNavigator2 CloneAsNavigator ();
\r
33 public abstract XmlWriter CreateAttributes ();
\r
35 // TODO: Where to use schemaType?
\r
36 public void CreateAttributeString (string prefix, string name, string ns, XmlSchemaType schemaType, string value)
\r
38 XmlWriter xw = CreateAttributes ();
\r
39 xw.WriteAttributeString (prefix, name, ns, value);
\r
43 public abstract XmlWriter CreateFirstChild ();
\r
45 public abstract void CreateFirstChild (string xmlFragments);
\r
47 // TODO: Where to use schemaType?
\r
48 public void CreateFirstChildElement (string prefix, string name, string ns, XmlSchemaType schemaType, string value)
\r
50 XmlWriter xw = CreateFirstChild ();
\r
51 xw.WriteStartElement (prefix, name, ns);
\r
52 xw.WriteString (value);
\r
53 xw.WriteEndElement ();
\r
57 public abstract XmlWriter CreateNextSibling ();
\r
58 public abstract void CreateNextSibling (string xmlFragment);
\r
60 // TODO: Where to use schemaType?
\r
61 public void CreateNextSiblingElement (string prefix, string name, string ns, XmlSchemaType schemaType, string value)
\r
63 XmlWriter xw = CreateNextSibling ();
\r
64 xw.WriteStartElement (prefix, name, ns);
\r
65 xw.WriteString (value);
\r
66 xw.WriteEndElement ();
\r
70 public abstract void DeleteCurrent ();
\r
72 public abstract void SetValue (string text);
\r