0
여기
을나는 제목과 미디어 사이의 피드 파서에 문제가 있습니다 : 내가 원하는 XML을 구문 분석하는 것입니다 제목
<item>
<title>Music Monday: Can 'The Whole Love' Compare to Wilco's Best?</title>
<link>...</link>
<comments>...</comments>
<pubDate>Mon, 19 Sep 2011 20:05:24 +0000</pubDate>
<media:title type="html">clairesuddath</media:title>
<media:thumbnail url="http://timenewsfeed.files.wordpress.com/2011/09/98079207.jpg?w=150"/>
</item>
이것은 내가
public void endElement(String uri, String localName, String qName) throws SAXException {
currentElement = false;
if (currentFeedItem != null) {
if(localName.equals("title")){
currentFeedItem.setTitle(currentValue);
} else if (localName.equals("link")) {
currentFeedItem.setLink(currentValue);
} else if (localName.equals("pubDate")) {
String dateString = currentValue;
try {
Date date = dateFormat.parse(dateString);
currentFeedItem.setPubDate(date);
} catch (ParseException e) {
Log.e("RSSFeed", "ERROR", e);
}
}
else if (localName.equals("item")) {
feedItemList.add(currentFeedItem);
}
}
}
내가 싶어 할 때마다 사용되는 코드입니다 제목, 나는 매체를 얻는다 : 대신에 제목. 어떻게 이것을 해결하기 위해 코드를 수정할 수 있습니까?
다른 하나는 어떻게 미디어에서 URL을 가져올 수 있습니까? 축소판?
대단히 감사합니다.
P. 미안 문법이 너를 괴롭히면 나는 영어를 잘 못한다.