// -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- // // System.Xml.XmlWriter // // Author: // Daniel Weber (daniel-weber@austin.rr.com) // // (C) 2001 Daniel Weber using System; namespace System.Xml { /// /// Abstract class XmlWriter /// public abstract class XmlWriter { // Private data members //=========================================================================== // public properties //=========================================================================== /// /// Get the state of the writer. /// public abstract WriteState WriteState {get;} /// /// Get the current xml:lang scope, or null if not defined. /// public abstract string XmlLang {get;} /// /// get an XmlSpace representing the current xml:space scope /// public abstract XmlSpace XmlSpace {get;} // Public Methods //=========================================================================== /// /// When overriden, closes this stream and the underlying stream. /// /// A call is made to write more output when the stream is closed. public abstract void Close(); /// /// Flushes whatever is in the buffer to the underlying streams, and flushes any underlying streams. /// public abstract void Flush(); /// /// Returns closest prefix in current namespace, or null if none found. /// /// namespace URI to find a prefix for. /// ns is null, or string.Empty /// public abstract string LookupPrefix(string ns); /// /// Write out all the attributes found at the current position in the XmlReader /// /// XmlReader to read from /// true to copy default attributes /// Reader is a null reference public virtual void WriteAttributes( XmlReader reader, bool defattr ) { //TODO - implement XmlWriter.WriteAttributes(XmlReader, bool) throw new NotImplementedException(); } } }