1 // -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
\r
3 // System.Xml.XmlWriter
\r
6 // Daniel Weber (daniel-weber@austin.rr.com)
\r
8 // (C) 2001 Daniel Weber
\r
12 namespace System.Xml
\r
15 /// Abstract class XmlWriter
\r
17 public abstract class XmlWriter
\r
19 // Private data members
\r
20 //===========================================================================
\r
22 // public properties
\r
23 //===========================================================================
\r
25 /// Get the state of the writer.
\r
27 public abstract WriteState WriteState {get;}
\r
30 /// Get the current xml:lang scope, or null if not defined.
\r
32 public abstract string XmlLang {get;}
\r
35 /// get an XmlSpace representing the current xml:space scope
\r
37 public abstract XmlSpace XmlSpace {get;}
\r
40 //===========================================================================
\r
42 /// When overriden, closes this stream and the underlying stream.
\r
44 /// <exception cref="InvalidOperationException">A call is made to write more output when the stream is closed.</exception>
\r
45 public abstract void Close();
\r
48 /// Flushes whatever is in the buffer to the underlying streams, and flushes any underlying streams.
\r
50 public abstract void Flush();
\r
53 /// Returns closest prefix in current namespace, or null if none found.
\r
55 /// <param name="ns">namespace URI to find a prefix for.</param>
\r
56 /// <exception cref="ArgumentException">ns is null, or string.Empty</exception>
\r
57 /// <returns></returns>
\r
58 public abstract string LookupPrefix(string ns);
\r
61 /// Write out all the attributes found at the current position in the XmlReader
\r
63 /// <param name="reader">XmlReader to read from</param>
\r
64 /// <param name="defattr">true to copy default attributes</param>
\r
65 /// <exception cref="ArgumentException">Reader is a null reference</exception>
\r
66 public virtual void WriteAttributes(
\r
71 //TODO - implement XmlWriter.WriteAttributes(XmlReader, bool)
\r
72 throw new NotImplementedException();
\r