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

◆ EnsureValidName()

string System.Xml.Xsl.Runtime.XmlQueryOutput.EnsureValidName ( string prefix,
string localName,
string ns,
XPathNodeType nodeType )
inlineprivate

Definition at line 978 of file XmlQueryOutput.cs.

979 {
980 if (!ValidateNames.ValidateName(prefix, localName, ns, nodeType, ValidateNames.Flags.AllExceptNCNames))
981 {
982 prefix = ((ns.Length != 0) ? RemapPrefix(string.Empty, ns, nodeType == XPathNodeType.Element) : string.Empty);
983 ValidateNames.ValidateNameThrow(prefix, localName, ns, nodeType, ValidateNames.Flags.AllExceptNCNames);
984 }
985 return prefix;
986 }
string RemapPrefix(string prefix, string ns, bool isElemPrefix)

References System.Xml.Dictionary, System.prefix, System.Xml.Xsl.Runtime.XmlQueryOutput.RemapPrefix(), System.Xml.ValidateNames.ValidateName(), and System.Xml.ValidateNames.ValidateNameThrow().

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