Вопроса фона:Нарезка XML в его изображение и текст значения
Я в настоящее время пытаюсь получить доступ к ссылке изображений и 'alt'
текстового значение из XML, извлеченный из вызова новостей API Yahoo, как показано ниже :
XmlNode nodds = xm.SelectSingleNode("/me/p/a/img");
string values = nodds.OuterXml;
вопрос:
выше строка 'значения' даст следующий вывод XML:
<img src="http://l.yimg.com/bt/api/res/1.2/nlO7riEkTxPgOISZ8dlWhg--/YXBwaWQ9eW5ld3M7Zmk9ZmlsbDtoPTg2O3E9NzU7dz0xMzA-/http://media.zenfs.com/en_us/News/ap_webfeeds/95a024a0a763a8044a0f6a7067001ac5.jpg" width="130" height="86" alt="Voters hold their identification cards and the chains that held the gate of the polling station closed, as they demand the right to vote during general elections in Bangkok, Thailand, Sunday, Feb. 2, 2014. Around the country, the vast majority of voting stations were open and polling proceeded relatively peacefully, but the risk of violence remained high a day after gun battles in Bangkok left seven people wounded. (AP Photo/Wally Santana)" align="left" title="Voters hold their identification cards and the chains that held the gate of the polling station closed, as they demand the right to vote during general elections in Bangkok, Thailand, Sunday, Feb. 2, 2014. Around the country, the vast majority of voting stations were open and polling proceeded relatively peacefully, but the risk of violence remained high a day after gun battles in Bangkok left seven people wounded. (AP Photo/Wally Santana)" border="0" />
Что такое правильный способ разделить вышеупомянутую строку вверх, так что я могу получить доступ:
image
ссылкаalt
текст значение
http://msdn.microsoft.com/en- us/library/2baksw0z (v = vs.110) .aspx – Nahum
@bejger только то, что я был после, много спасибо. Как только я позволю, я буду отмечать вас как правильный ответ. – user1352057