From 0d1e734739cb4e8deaf0dc5d412fbe8d6745e1b1 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 17 Dec 2013 16:36:16 +0100 Subject: CppunitTest_sw_ooxmlexport: handle mc namespace in assertions Change-Id: I17c8e5b4716652585d5612a4796140e7f54aaddb --- sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw') diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index aede32896156..8759f618f743 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -134,6 +134,7 @@ xmlNodeSetPtr Test::getXPathNode(xmlDocPtr pXmlDoc, const OString& rXPath) xmlXPathContextPtr pXmlXpathCtx = xmlXPathNewContext(pXmlDoc); xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("w"), BAD_CAST("http://schemas.openxmlformats.org/wordprocessingml/2006/main")); xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("v"), BAD_CAST("urn:schemas-microsoft-com:vml")); + xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("mc"), BAD_CAST("http://schemas.openxmlformats.org/markup-compatibility/2006")); xmlXPathObjectPtr pXmlXpathObj = xmlXPathEvalExpression(BAD_CAST(rXPath.getStr()), pXmlXpathCtx); return pXmlXpathObj->nodesetval; } -- cgit