diff --git a/source/net/yacy/document/parser/mmParser.java b/source/net/yacy/document/parser/mmParser.java index ba0e2bb33..ff513a659 100644 --- a/source/net/yacy/document/parser/mmParser.java +++ b/source/net/yacy/document/parser/mmParser.java @@ -48,6 +48,7 @@ public class mmParser extends AbstractParser implements Parser { super("FreeMind Parser"); SUPPORTED_EXTENSIONS.add("mm"); SUPPORTED_MIME_TYPES.add("application/freemind"); + SUPPORTED_MIME_TYPES.add("application/x-freemind"); } public Document[] parse(final MultiProtocolURI location, final String mimeType, @@ -100,17 +101,18 @@ public class mmParser extends AbstractParser implements Parser { false)}; } - private class FreeMindHandler extends DefaultHandler { + private static class FreeMindHandler extends DefaultHandler { private List nodeText = new ArrayList(); @Override public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) { - - final String textValue = attributes.getValue("TEXT"); - if (textValue != null) { - nodeText.add(textValue); + if (qName.equals("node")) { + final String textValue = attributes.getValue("TEXT"); + if (textValue != null) { + nodeText.add(textValue); + } } } diff --git a/source/net/yacy/document/parser/sidAudioParser.java b/source/net/yacy/document/parser/sidAudioParser.java index 18f55679d..c954b7328 100644 --- a/source/net/yacy/document/parser/sidAudioParser.java +++ b/source/net/yacy/document/parser/sidAudioParser.java @@ -46,7 +46,7 @@ import net.yacy.document.Parser; public class sidAudioParser extends AbstractParser implements Parser { public sidAudioParser() { - super("Commodore 64 SID audio file Parser"); + super("Commodore 64 SID Audio File Parser"); SUPPORTED_EXTENSIONS.add("sid"); SUPPORTED_MIME_TYPES.add("audio/prs.sid"); SUPPORTED_MIME_TYPES.add("audio/psid");