You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
528 B
22 lines
528 B
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace Common.IO.XML
|
||
|
{
|
||
|
public static class XMLUtil
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 获取指定节点的属性值
|
||
|
/// </summary>
|
||
|
/// <param name="node">节点</param>
|
||
|
/// <param name="name">属性名称</param>
|
||
|
/// <returns></returns>
|
||
|
public static string GetAttribute(System.Xml.XmlNode node, string name)
|
||
|
{
|
||
|
return node.Attributes[name].Value;
|
||
|
}
|
||
|
}
|
||
|
}
|