aboutsummaryrefslogtreecommitdiff
path: root/src/support/dom/document_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/dom/document_cache.cc')
-rw-r--r--src/support/dom/document_cache.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/support/dom/document_cache.cc b/src/support/dom/document_cache.cc
index 23805b5..c18bf96 100644
--- a/src/support/dom/document_cache.cc
+++ b/src/support/dom/document_cache.cc
@@ -11,9 +11,15 @@ namespace InputXSLT {
auto DomDocumentCache::createDocument() -> document_ptr {
return document_ptr(
+ xercesc::DOMImplementation::getImplementation()->createDocument()
+ );
+}
+
+auto DomDocumentCache::createDocument(const std::string& name) -> document_ptr {
+ return document_ptr(
xercesc::DOMImplementation::getImplementation()->createDocument(
nullptr,
- *XercesStringGuard<XMLCh>("content"),
+ *XercesStringGuard<XMLCh>(name),
nullptr
)
);