diff options
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 5693be539009..a9ae0e01b5f0 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -22,7 +22,8 @@ #include "saxbuilder.hxx" -#include <com/sun/star/xml/dom/XDocumentBuilder.hpp> +#include <com/sun/star/xml/dom/DocumentBuilder.hpp> +#include <comphelper/componentcontext.hxx> namespace DOM @@ -166,8 +167,7 @@ namespace DOM if (!m_aState == SAXDocumentBuilderState_READY) throw SAXException(); - Reference< XDocumentBuilder > aBuilder(m_aServiceManager->createInstance( - "com.sun.star.xml.dom.DocumentBuilder"), UNO_QUERY_THROW); + Reference< XDocumentBuilder > aBuilder(DocumentBuilder::create(comphelper::ComponentContext(m_aServiceManager).getUNOContext())); Reference< XDocument > aDocument = aBuilder->newDocument(); m_aNodeStack.push(Reference< XNode >(aDocument, UNO_QUERY)); m_aDocument = aDocument; |