2 // System.Xml.XmlValidatingReader.cs
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2002
12 using System.Xml.Schema;
14 namespace System.Xml {
15 public class XmlValidatingReader : XmlReader, IXmlLineInfo {
19 EntityHandling entityHandling;
22 ValidationType validationType;
29 public XmlValidatingReader (XmlReader reader)
32 if (!(reader is XmlTextReader))
33 throw new ArgumentException ();
36 entityHandling = EntityHandling.ExpandEntities;
38 validationType = ValidationType.Auto;
42 public XmlValidatingReader (Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
43 : this (new XmlTextReader (xmlFragment))
47 public XmlValidatingReader (string xmlFragment, XmlNodeType fragType, XmlParserContext context)
48 : this (new XmlTextReader (xmlFragment))
52 #endregion // Constructors
56 public override int AttributeCount {
58 get { throw new NotImplementedException (); }
61 public override string BaseURI {
63 get { throw new NotImplementedException (); }
66 public override bool CanResolveEntity {
70 public override int Depth {
72 get { throw new NotImplementedException (); }
75 public Encoding Encoding {
77 get { throw new NotImplementedException (); }
80 public EntityHandling EntityHandling {
81 get { return entityHandling; }
82 set { entityHandling = value; }
85 public override bool EOF {
87 get { throw new NotImplementedException (); }
90 public override bool HasValue {
92 get { throw new NotImplementedException (); }
95 public override bool IsDefault {
97 get { throw new NotImplementedException (); }
100 public override bool IsEmptyElement {
102 get { throw new NotImplementedException (); }
105 public override string this [int i] {
107 get { throw new NotImplementedException (); }
110 public override string this [string name] {
112 get { throw new NotImplementedException (); }
115 public override string this [string localName, string namespaceName] {
117 get { throw new NotImplementedException (); }
120 int IXmlLineInfo.LineNumber {
122 get { throw new NotImplementedException (); }
125 int IXmlLineInfo.LinePosition {
127 get { throw new NotImplementedException (); }
130 public override string LocalName {
132 get { throw new NotImplementedException (); }
135 public override string Name {
137 get { throw new NotImplementedException (); }
140 public bool Namespaces {
141 get { return namespaces; }
142 set { namespaces = value; }
145 public override string NamespaceURI {
147 get { throw new NotImplementedException (); }
150 public override XmlNameTable NameTable {
152 get { throw new NotImplementedException (); }
155 public override XmlNodeType NodeType {
157 get { throw new NotImplementedException (); }
160 public override string Prefix {
162 get { throw new NotImplementedException (); }
165 public override char QuoteChar {
167 get { throw new NotImplementedException (); }
170 public XmlReader Reader {
171 get { return reader; }
174 public override ReadState ReadState {
176 get { throw new NotImplementedException (); }
179 public XmlSchemaCollection Schemas {
181 get { throw new NotImplementedException (); }
184 public object SchemaType {
186 get { throw new NotImplementedException (); }
189 public ValidationType ValidationType {
190 get { return validationType; }
191 [MonoTODO ("Need to check for exception.")]
192 set { validationType = value; }
195 public override string Value {
197 get { throw new NotImplementedException (); }
200 public override string XmlLang {
202 get { throw new NotImplementedException (); }
205 public XmlResolver XmlResolver {
207 set { throw new NotImplementedException (); }
210 public override XmlSpace XmlSpace {
212 get { throw new NotImplementedException (); }
215 #endregion // Properties
220 public override void Close ()
222 throw new NotImplementedException ();
226 public override string GetAttribute (int i)
228 throw new NotImplementedException ();
232 public override string GetAttribute (string name)
234 throw new NotImplementedException ();
238 public override string GetAttribute (string localName, string namespaceName)
240 throw new NotImplementedException ();
244 bool IXmlLineInfo.HasLineInfo ()
246 throw new NotImplementedException ();
250 public override string LookupNamespace (string prefix)
252 throw new NotImplementedException ();
256 public override void MoveToAttribute (int i)
258 throw new NotImplementedException ();
262 public override bool MoveToAttribute (string name)
264 throw new NotImplementedException ();
268 public override bool MoveToAttribute (string localName, string namespaceName)
270 throw new NotImplementedException ();
274 public override bool MoveToElement ()
276 throw new NotImplementedException ();
280 public override bool MoveToFirstAttribute ()
282 throw new NotImplementedException ();
286 public override bool MoveToNextAttribute ()
288 throw new NotImplementedException ();
292 public override bool Read ()
294 throw new NotImplementedException ();
298 public override bool ReadAttributeValue ()
300 throw new NotImplementedException ();
304 public override string ReadInnerXml ()
306 throw new NotImplementedException ();
310 public override string ReadOuterXml ()
312 throw new NotImplementedException ();
316 public override string ReadString ()
318 throw new NotImplementedException ();
322 public object ReadTypedValue ()
324 throw new NotImplementedException ();
328 public override void ResolveEntity ()
330 throw new NotImplementedException ();
333 #endregion // Methods
335 #region Events and Delegates
337 public event ValidationEventHandler ValidationEventHandler;
339 #endregion // Events and Delegates