public static string GetNodeAttr(BinaryNode node, string attrName) { for (int i = 0; i < node.GetAttrNum(); i++) { BinaryAttr attr = node.GetAttr(i); if (attr.GetName() == attrName) { return(attr.GetValueString()); } } return(null); }