2 // mcs/class/System.Data/System.Xml/XmlDataDocument.cs
4 // Purpose: Provides a W3C XML DOM Document to interact with
5 // relational data in a DataSet
7 // class: XmlDataDocument
8 // assembly: System.Data.dll
9 // namespace: System.Xml
12 // Daniel Morgan <danmorg@sc.rr.com>
14 // (c)copyright 2002 Daniel Morgan
16 // XmlDataDocument is included within the Mono Class Library.
23 using System.Xml.XPath;
25 namespace System.Xml {
27 public class XmlDataDocument : XmlDocument {
31 private DataSet dataSet;
37 public XmlDataDocument() {
38 dataSet = new DataSet();
41 public XmlDataDocument(DataSet dataset) {
42 this.dataSet = dataset;
45 #endregion // Constructors
47 #region Public Properties
49 public override string BaseURI {
52 // TODO: why are we overriding?
57 public DataSet DataSet {
64 // override inheritted method from XmlDocument
65 public override string InnerXml {
68 throw new NotImplementedException();
73 throw new NotImplementedException();
77 public override bool IsReadOnly {
80 throw new NotImplementedException();
86 public override XmlElement this[string name] {
89 throw new NotImplementedException();
94 public override XmlElement this[string localname, string ns] {
97 throw new NotImplementedException();
101 public override string LocalName {
104 throw new NotImplementedException();
108 public override string Name {
111 throw new NotImplementedException();
115 public override XmlDocument OwnerDocument {
122 #endregion // Public Properties
124 #region Public Methods
127 public override XmlNode CloneNode(bool deep)
129 throw new NotImplementedException();
132 #region overloaded CreateElement methods
135 public new XmlElement CreateElement(string prefix,
136 string localName, string namespaceURI)
138 throw new NotImplementedException();
142 public new XmlElement CreateElement(string qualifiedName,
145 throw new NotImplementedException();
149 public new XmlElement CreateElement(string name)
151 throw new NotImplementedException();
154 #endregion // overloaded CreateElement Methods
156 // will not be supported
157 public override XmlEntityReference CreateEntityReference(string name)
159 throw new NotSupportedException();
162 // will not be supported
163 public override XmlElement GetElementById(string elemId)
165 throw new NotSupportedException();
168 // get the XmlElement associated with the DataRow
169 public XmlElement GetElementFromRow(DataRow r)
171 throw new NotImplementedException();
174 // get the DataRow associated with the XmlElement
176 public DataRow GetRowFromElement(XmlElement e)
\r
178 throw new NotImplementedException();
\r
181 #region overload Load methods
\r
184 public override void Load(Stream inStream) {
\r
185 throw new NotImplementedException();
\r
189 public override void Load(string filename) {
\r
190 throw new NotImplementedException();
\r
194 public override void Load(TextReader txtReader) {
\r
195 throw new NotImplementedException();
\r
199 public override void Load(XmlReader reader) {
\r
200 throw new NotImplementedException();
\r
203 #endregion // overloaded Load methods
\r
206 public override void WriteContentTo(XmlWriter xw) {
\r
207 throw new NotImplementedException();
\r
211 public override void WriteTo(XmlWriter w) {
\r
212 throw new NotImplementedException();
\r
215 #endregion // Public Methods
217 #region Protected Methods
220 protected override XPathNavigator CreateNavigator(XmlNode node) {
\r
221 throw new NotImplementedException();
\r
225 public new XPathNavigator CreateNavigator() {
\r
226 throw new NotImplementedException();
\r
229 #endregion // Protected Methods