XmlDataDocument.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. //
  2. // mcs/class/System.Data/System.Xml/XmlDataDocument.cs
  3. //
  4. // Purpose: Provides a W3C XML DOM Document to interact with
  5. // relational data in a DataSet
  6. //
  7. // class: XmlDataDocument
  8. // assembly: System.Data.dll
  9. // namespace: System.Xml
  10. //
  11. // Author:
  12. // Daniel Morgan <[email protected]>
  13. //
  14. // (c)copyright 2002 Daniel Morgan
  15. //
  16. // XmlDataDocument is included within the Mono Class Library.
  17. //
  18. using System;
  19. using System.Data;
  20. using System.IO;
  21. using System.Text;
  22. using System.Xml.XPath;
  23. namespace System.Xml {
  24. public class XmlDataDocument : XmlDocument {
  25. #region Fields
  26. private DataSet dataSet;
  27. #endregion // Fields
  28. #region Constructors
  29. public XmlDataDocument() {
  30. dataSet = new DataSet();
  31. }
  32. public XmlDataDocument(DataSet dataset) {
  33. this.dataSet = dataset;
  34. }
  35. #endregion // Constructors
  36. #region Public Properties
  37. public override string BaseURI {
  38. [MonoTODO]
  39. get {
  40. // TODO: why are we overriding?
  41. return base.BaseURI;
  42. }
  43. }
  44. public DataSet DataSet {
  45. [MonoTODO]
  46. get {
  47. return dataSet;
  48. }
  49. }
  50. // override inheritted method from XmlDocument
  51. public override string InnerXml {
  52. [MonoTODO]
  53. get {
  54. throw new NotImplementedException();
  55. }
  56. [MonoTODO]
  57. set {
  58. throw new NotImplementedException();
  59. }
  60. }
  61. public override bool IsReadOnly {
  62. [MonoTODO]
  63. get {
  64. throw new NotImplementedException();
  65. }
  66. }
  67. // Item indexer
  68. public override XmlElement this[string name] {
  69. [MonoTODO]
  70. get {
  71. throw new NotImplementedException();
  72. }
  73. }
  74. // Item indexer
  75. public override XmlElement this[string localname, string ns] {
  76. [MonoTODO]
  77. get {
  78. throw new NotImplementedException();
  79. }
  80. }
  81. public override string LocalName {
  82. [MonoTODO]
  83. get {
  84. throw new NotImplementedException();
  85. }
  86. }
  87. public override string Name {
  88. [MonoTODO]
  89. get {
  90. throw new NotImplementedException();
  91. }
  92. }
  93. public override XmlDocument OwnerDocument {
  94. [MonoTODO]
  95. get {
  96. return null;
  97. }
  98. }
  99. #endregion // Public Properties
  100. #region Public Methods
  101. [MonoTODO]
  102. public override XmlNode CloneNode(bool deep)
  103. {
  104. throw new NotImplementedException();
  105. }
  106. #region overloaded CreateElement methods
  107. [MonoTODO]
  108. public new XmlElement CreateElement(string prefix,
  109. string localName, string namespaceURI)
  110. {
  111. throw new NotImplementedException();
  112. }
  113. [MonoTODO]
  114. public new XmlElement CreateElement(string qualifiedName,
  115. string namespaceURI)
  116. {
  117. throw new NotImplementedException();
  118. }
  119. [MonoTODO]
  120. public new XmlElement CreateElement(string name)
  121. {
  122. throw new NotImplementedException();
  123. }
  124. #endregion // overloaded CreateElement Methods
  125. // will not be supported
  126. public override XmlEntityReference CreateEntityReference(string name)
  127. {
  128. throw new NotSupportedException();
  129. }
  130. // will not be supported
  131. public override XmlElement GetElementById(string elemId)
  132. {
  133. throw new NotSupportedException();
  134. }
  135. // get the XmlElement associated with the DataRow
  136. public XmlElement GetElementFromRow(DataRow r)
  137. {
  138. throw new NotImplementedException();
  139. }
  140. // get the DataRow associated with the XmlElement
  141. [MonoTODO]
  142. public DataRow GetRowFromElement(XmlElement e)
  143. {
  144. throw new NotImplementedException();
  145. }
  146. #region overload Load methods
  147. [MonoTODO]
  148. public override void Load(Stream inStream) {
  149. throw new NotImplementedException();
  150. }
  151. [MonoTODO]
  152. public override void Load(string filename) {
  153. throw new NotImplementedException();
  154. }
  155. [MonoTODO]
  156. public override void Load(TextReader txtReader) {
  157. throw new NotImplementedException();
  158. }
  159. [MonoTODO]
  160. public override void Load(XmlReader reader) {
  161. throw new NotImplementedException();
  162. }
  163. #endregion // overloaded Load methods
  164. [MonoTODO]
  165. public override void WriteContentTo(XmlWriter xw) {
  166. throw new NotImplementedException();
  167. }
  168. [MonoTODO]
  169. public override void WriteTo(XmlWriter w) {
  170. throw new NotImplementedException();
  171. }
  172. #endregion // Public Methods
  173. #region Protected Methods
  174. [MonoTODO]
  175. protected override XPathNavigator CreateNavigator(XmlNode node) {
  176. throw new NotImplementedException();
  177. }
  178. [MonoTODO]
  179. public new XPathNavigator CreateNavigator() {
  180. throw new NotImplementedException();
  181. }
  182. #endregion // Protected Methods
  183. }
  184. }