MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / GetFirstElement

Method GetFirstElement

TexturedFontEditor/Helper.cs:35–43  ·  view source on GitHub ↗
(XmlElement Xml, string TagName)

Source from the content-addressed store, hash-verified

33 }
34
35 public static XmlElement GetFirstElement(XmlElement Xml, string TagName)
36 {
37 XmlNodeList tList = Xml.GetElementsByTagName(TagName);
38
39 if (tList.Count == 0)
40 throw new Exception("找不到元素'"+TagName+"'.");
41 else
42 return (XmlElement)tList[0];
43 }
44
45 public static string GetXmlResValue(XmlElement Xml, string TagName, string Attribute = "Value")
46 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected