(XmlElement Xml, string TagName)
| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected