0
Ich habe folgenden Code, aber ich möchte zweiten td-Wert, wie geht das? bitte hilfe.Wie bekomme ich zweiten Tag-Wert
string value = getBetween(xml, "<td class=\"statusValue\">", "</td>");
public static string getBetween(string strSource, string strStart, string strEnd)
{
int Start, End;
if (strSource.Contains(strStart) && strSource.Contains(strEnd))
{
Start = strSource.IndexOf(strStart, 0) + strStart.Length;
End = strSource.IndexOf(strEnd, Start);
return strSource.Substring(Start, End - Start);
}
else
{
return "";
}
}
seine Show null; ( –
können Sie Ihre XML in Text geben Sie bitte – denisv
ich habe xml html nicht –