private string GetSpecialDescription() { /* * 1. look for the CategoryNode * 2. if found: look for the SubCategoryNode in the Childnodes * 3. get the description */ XMLHelper xmlHelper = XMLHelper.getInstance; return(xmlHelper.GetSpecialShortDescription(SInter.GetCategory(), SInter.GetSubCategory())); }
private string GetContentFromXML() { /* * get the complet content * 1. get the content of the "<description>"-Tag * 2. get the content of the "<eachMainPoint>"-Tag * 3. get the content of the "<eachSubPoint>"-Tag */ XMLHelper xmlhelper = XMLHelper.getInstance; string specialDescription = xmlhelper.GetSpecialLongDescription(SInter.GetCategory(), SInter.GetSubCategory()); if (specialDescription.Contains(";")) { string[] specialDescArray = Regex.Split(specialDescription, ";"); SetMainPointDesc(specialDescArray[1]); SetSubPointDesc(specialDescArray[2]); return(specialDescArray[0]); } else { //ther musst be a errormessage return(specialDescription); } }