diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2003-09-13 21:33:09 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2003-09-13 21:33:09 +0400 |
commit | 42f2e5051bff00cb0ccce27051a5b28d775ab03e (patch) | |
tree | 31082070bdcac50ddefc12b56ce2a26fa91c39b8 /mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs | |
parent | add23d04b019ff0c311e085659a864300cddaac1 (diff) |
2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
* XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
in .ctor().
* XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
add Namespaces immediately, but adds at AddMissingElementXmlns so
that we don't have to have extra check than namespaceManager's
LookupPrefix(). 2) Removed writtenAttributes for performance reason
since it is no more required.
svn path=/trunk/mcs/; revision=18063
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs b/mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs index 1f0f63aae3d..ab565e566d0 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextWriterOpenElement.cs @@ -17,7 +17,8 @@ namespace System.Xml { #region Fields - string name; + string prefix; + string localName; string xmlLang; XmlSpace xmlSpace; bool indentingOverriden = false; @@ -26,47 +27,39 @@ namespace System.Xml #region Constructors - public XmlTextWriterOpenElement (string name) + public XmlTextWriterOpenElement (string prefix, string localName) { - this.name = name; + this.prefix = prefix; + this.localName = localName; } #endregion #region Properties - public string Name - { - get { return name; } + public string LocalName { + get { return localName; } } - public bool IndentingOverriden - { + public string Prefix { + get { return prefix; } + } + + public bool IndentingOverriden { get { return indentingOverriden; } set { indentingOverriden = value; } } - public string XmlLang - { + public string XmlLang { get { return xmlLang; } set { xmlLang = value; } } - public XmlSpace XmlSpace - { + public XmlSpace XmlSpace { get { return xmlSpace; } set { xmlSpace = value; } } #endregion - - #region Methods - - public override string ToString () - { - return name; - } - - #endregion } } |