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;

}

你可能感兴趣的:(value)