35 @
namespace = attribute.Name.Namespace;
36 string localName =
attribute.Name.LocalName;
56 if ((
object)
namespaceName ==
"http://www.w3.org/XML/1998/namespace")
79 private void Write(
object content)
90 if (content
is string s)
102 WriteStreamingElement(e);
117 foreach (
object item in enumerable)
129 if (_element ==
null)
148 _writer.WriteEndElement();
155 _writer.WriteString(
s);
void Add(TKey key, TValue value)
static string InvalidOperation_WriteAttribute
static string GetStringValue(object value)
static XNamespace Get(string namespaceName)
string GetPrefixOfNamespace(XNamespace ns, bool allowDefaultNamespace)
void Add(string prefix, XNamespace ns)
readonly List< XAttribute > _attributes
readonly XmlWriter _writer
StreamingElementWriter(XmlWriter w)
void WriteString(string s)
void WriteStreamingElement(XStreamingElement e)
void Write(object content)
string GetPrefixOfNamespace(XNamespace ns, bool allowDefaultNamespace)
NamespaceResolver _resolver
void WriteAttribute(XAttribute a)
XStreamingElement _element