public static bool SetRowsAttributeByXmlNode(string _TagName) { bool result; try { if (_TagName == null) { throw new NullReferenceException(); } XmlNode[] xmlNodeByTagname = XmlCommomOp.GetXmlNodeByTagname(_TagName); if (xmlNodeByTagname == null || xmlNodeByTagname.Length <= 0) { result = false; } else { for (int i = 0; i < xmlNodeByTagname.Length; i++) { DrawDriverXmlOp.SetRowsAttributeByXmlNode(xmlNodeByTagname[i]); } result = true; } } catch (Exception ex) { throw ex; } return(result); }
private static void NodeChildNodes(XmlNode _node) { if (_node.HasChildNodes) { DrawDriverXmlOp.SetRowsAttributeByXmlNode(_node); foreach (XmlNode node in _node.ChildNodes) { DrawDriverXmlOp.NodeChildNodes(node); } } }