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

◆ WriteNamespaceDeclarationUnchecked()

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

Definition at line 345 of file XmlQueryOutput.cs.

346 {
347 if (_depth == 0)
348 {
349 Writer.WriteNamespaceDeclaration(prefix, ns);
350 return;
351 }
352 if (_nsmgr == null)
353 {
354 if (ns.Length == 0 && prefix.Length == 0)
355 {
356 return;
357 }
358 _nsmgr = new XmlNamespaceManager(_runtime.NameTable);
360 }
361 if (_nsmgr.LookupNamespace(prefix) != ns)
362 {
363 AddNamespace(prefix, ns);
364 }
365 _usedPrefixes[prefix] = ns;
366 }
virtual ? string LookupNamespace(string prefix)
void AddNamespace(string prefix, string ns)
readonly Dictionary< string, string > _usedPrefixes
readonly XmlQueryRuntime _runtime

References System.Xml.Xsl.Runtime.XmlQueryOutput._depth, System.Xml.Xsl.Runtime.XmlQueryOutput._nsmgr, System.Xml.Xsl.Runtime.XmlQueryOutput._runtime, System.Xml.Xsl.Runtime.XmlQueryOutput._usedPrefixes, System.Xml.Xsl.Runtime.XmlQueryOutput.AddNamespace(), System.Xml.XmlNamespaceManager.LookupNamespace(), System.Xml.Xsl.Runtime.XmlQueryRuntime.NameTable, System.prefix, and System.Xml.XmlNamespaceManager.PushScope().

Referenced by System.Xml.Xsl.Runtime.XmlQueryOutput.CheckAttributePrefix(), System.Xml.Xsl.Runtime.XmlQueryOutput.CopyNamespaces(), System.Xml.Xsl.Runtime.XmlQueryOutput.CopyNamespacesHelper(), System.Xml.Xsl.Runtime.XmlQueryOutput.StartCopy(), System.Xml.Xsl.Runtime.XmlQueryOutput.WriteNamespaceDeclaration(), and System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartElement().