private static GetByteFromXmlAttribute ( |
||
node | ||
attrName | string | |
Résultat | byte |
private static byte GetByteFromXmlAttribute(XmlNode node, string attrName)
{
XmlAttribute attr = node.Attributes[attrName];
if (attr == null)
return 0;
return (byte)(attr.Value == "yes" ? 1 : 0);
}
private static string GetStringFromXmlAttribute(XmlNode node, string attrName)