예제 #1
0
 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);
 }