private static String GetCursorText(ConfigXmlCursor cursor) { String strText = String.Empty; if (cursor.MoveToFirstChild()) { while (cursor.Type == ConfigXmlElement.Whitespace || cursor.Type == ConfigXmlElement.Text) { strText += cursor.Text; // grab the text if (!cursor.MoveNext()) { break; } } cursor.MoveToParent(); } return(strText.Trim()); }
private static String GetCabFileNameFromCursor(ConfigXmlCursor cursor) { String strReturn = String.Empty; if (cursor.MoveToFirstChild()) { do { if (cursor.Type == ConfigXmlElement.Element && cursor.Name.ToLower(CultureInfo.InvariantCulture).Equals("codebase")) { strReturn = cursor.AttributeText("href"); break; } }while (cursor.MoveNext()); cursor.MoveToParent(); } return(strReturn); }