Fixed bug in prefix mapping of SyndHandler

This commit is contained in:
daniel oeh 2012-09-01 17:29:22 +02:00
parent d4147fd907
commit 05abff69f1
2 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,9 @@ public class SyndHandler extends DefaultHandler {
@Override @Override
public void endPrefixMapping(String prefix) throws SAXException { public void endPrefixMapping(String prefix) throws SAXException {
// TODO remove Namespace if (state.defaultNamespaces.size() > 1 && prefix.equals(DEFAULT_PREFIX)) {
state.defaultNamespaces.pop();
}
} }
@Override @Override

View File

@ -24,6 +24,7 @@ public class FeedHandlerTest extends AndroidTestCase {
private static final String FEEDS_DIR = "testfeeds"; private static final String FEEDS_DIR = "testfeeds";
private static final String[] urls = { private static final String[] urls = {
"http://www.blacksweetstories.com/feed/podcast/",
"http://bitlove.org/ranzzeit/ranz/feed", "http://bitlove.org/ranzzeit/ranz/feed",
"http://bitlove.org/importthis/mp3/feed", "http://bitlove.org/importthis/mp3/feed",
"http://bitlove.org/astro/youtube/feed", "http://bitlove.org/astro/youtube/feed",