Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteNamespaceDeclaration()

void System.Xml.Xsl.Runtime.XmlQueryOutput.WriteNamespaceDeclaration ( string prefix,
string ns )
inline

Definition at line 444 of file XmlQueryOutput.cs.

445 {
447 if (_nsmgr == null)
448 {
450 }
451 else
452 {
454 if (ns != text)
455 {
456 if (text != null && _usedPrefixes.ContainsKey(prefix))
457 {
458 throw new XslTransformException(System.SR.XmlIl_NmspConflict, (prefix.Length == 0) ? "" : ":", prefix, ns, text);
459 }
460 AddNamespace(prefix, ns);
461 }
462 }
463 if (_depth == 0)
464 {
465 EndTree();
466 }
467 _usedPrefixes[prefix] = ns;
468 }
static string XmlIl_NmspConflict
Definition SR.cs:2036
Definition SR.cs:7
virtual ? string LookupNamespace(string prefix)
void WriteNamespaceDeclarationUnchecked(string prefix, string ns)
void AddNamespace(string prefix, string ns)
void ConstructInEnumAttrs(XPathNodeType rootType)
readonly Dictionary< string, string > _usedPrefixes

References System.Xml.Xsl.Runtime.XmlQueryOutput._depth, System.Xml.Xsl.Runtime.XmlQueryOutput._nsmgr, System.Xml.Xsl.Runtime.XmlQueryOutput._usedPrefixes, System.Xml.Xsl.Runtime.XmlQueryOutput.AddNamespace(), System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.Xsl.Runtime.XmlQueryOutput.EndTree(), System.Xml.XmlNamespaceManager.LookupNamespace(), System.prefix, System.text, System.Xml.Xsl.Runtime.XmlQueryOutput.WriteNamespaceDeclarationUnchecked(), and System.SR.XmlIl_NmspConflict.

Referenced by System.Xml.Xsl.Runtime.XmlQueryOutput.StartCopy(), and System.Xml.Xsl.Runtime.XmlQueryOutput.WriteEndNamespace().