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

◆ ParseTagName() [1/3]

void System.Xml.Xsl.Runtime.XmlQueryRuntime.ParseTagName ( string tagName,
int idxPrefixMappings,
out string prefix,
out string localName,
out string ns )
inlinepackage

Definition at line 238 of file XmlQueryRuntime.cs.

239 {
240 ValidateNames.ParseQNameThrow(tagName, out prefix, out localName);
241 ns = null;
243 for (int i = 0; i < array.Length; i++)
244 {
245 StringPair stringPair = array[i];
246 if (prefix == stringPair.Left)
247 {
248 ns = stringPair.Right;
249 break;
250 }
251 }
252 if (ns != null)
253 {
254 return;
255 }
256 if (prefix.Length == 0)
257 {
258 ns = "";
259 return;
260 }
261 if (prefix.Equals("xml"))
262 {
263 ns = "http://www.w3.org/XML/1998/namespace";
264 return;
265 }
266 if (prefix.Equals("xmlns"))
267 {
268 ns = "http://www.w3.org/2000/xmlns/";
269 return;
270 }
271 throw new XslTransformException(System.SR.Xslt_InvalidPrefix, prefix);
272 }
static string Xslt_InvalidPrefix
Definition SR.cs:1926
Definition SR.cs:7
readonly StringPair[][] _prefixMappingsList

References System.Xml.Xsl.Runtime.XmlQueryRuntime._prefixMappingsList, System.array, System.Xml.Dictionary, System.Xml.ValidateNames.ParseQNameThrow(), System.prefix, and System.SR.Xslt_InvalidPrefix.