5 references to xmlnsNamespace
System.Runtime.Serialization (5)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (5)
863
if (ns != null && ns !=
xmlnsNamespace
)
865
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.XmlPrefixBoundToNamespace, "xmlns",
xmlnsNamespace
, ns), "ns"));
875
if (IsWritingNameWithMapping && ns ==
xmlnsNamespace
&& localName != JsonGlobals.xmlnsPrefix)
882
if (IsWritingNameWithMapping && ns ==
xmlnsNamespace
)
886
else if (string.IsNullOrEmpty(prefix) && localName == JsonGlobals.xmlnsPrefix && ns ==
xmlnsNamespace
)