Retrieves the value of the specified tag xml node.

///<summary>

///the name of the Value xml node.

///</summary>

protected const string cValueXmlAttributeName="Value";

///<summary>

///Retrieves the value of the specified tag xml node.

///</summary>

protected string GetXmlNodeValue(XmlNode node)

{

  if(node==null)

  {

    throw new ArgumentNulException("Node");

  }

  XmlAttribute myValueXmlAttribute=node.Attributes[cTagValueXmlAttributename];

  if(myValueXmlAttribute==null)

  {

    return null;

  }

  return myValueXmlAttribute.Value;

}

posted @ 2012-05-07 15:27  szjdw  阅读(146)  评论(0编辑  收藏  举报