public jxE FindByAttr(string attribute_name, string value, out jxA a) { a = AttrVar(attribute_name); if (a != null) { if (value == null) { return(this); } if (a.IsEType(EDataType.e_string)) { if (a.Get_string() == value) { return(this); } } } for (jxE e = m_Child; e != null; e = e.m_Next) { jxE eFind = e.FindByAttr(attribute_name, value, out a); if (eFind != null) { return(eFind); } } return(null); }
public string AttrOverride(string attribute_name) { jxA v = AttrVarOverride(attribute_name); if (v == null) { return(null); } if (!v.IsEType(nXML.EDataType.e_string)) { string sError = m_jxE.GetTagName() + "'s attribute<" + attribute_name + "> is not e_string : " + v.GetEType().ToString(); throw new System.Exception(sError); } return(v.Get_string()); }