From be8436672d46c5d2870b27265355e493fc7c86be Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 22 Mar 2016 14:59:03 +0100 Subject: tdf#98791 remove namespace check for VDX ... to allow import of documents created by 3rd-party applications that cannot be bothered to produce a valid XML (like lucidchart.com). Change-Id: I70dda9a7d6e90e84d0eb78bd4dfa153e3e093528 --- src/lib/VisioDocument.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/lib/VisioDocument.cpp b/src/lib/VisioDocument.cpp index 6304391..b8099e5 100644 --- a/src/lib/VisioDocument.cpp +++ b/src/lib/VisioDocument.cpp @@ -271,21 +271,6 @@ static bool isXmlVisioDocument(librevenge::RVNGInputStream *input) { return false; } - - // Checking the two possible namespaces of VDX documents. This may be a bit strict - // and filter out some of third party VDX documents. If that happens, commenting out - // this block could be an option. - const xmlChar *nsname = xmlTextReaderConstNamespaceUri(reader.get()); - if (!nsname) - { - return false; - } - if (!xmlStrEqual(nsname, BAD_CAST("urn:schemas-microsoft-com:office:visio")) - && !xmlStrEqual(nsname, BAD_CAST("http://schemas.microsoft.com/visio/2003/core"))) - { - return false; - } - return true; } catch (...) -- cgit v1.2.3