Line data Source code
1 : // file : xsd/cxx/xml/dom/wildcard-source.txx
2 : // copyright : Copyright (c) 2005-2017 Code Synthesis Tools CC
3 : // license : GNU GPL v2 + exceptions; see accompanying LICENSE file
4 :
5 : #include <xercesc/util/XMLUniDefs.hpp> // chLatin_L, etc
6 :
7 : #include <xercesc/dom/DOMImplementation.hpp>
8 : #include <xercesc/dom/DOMImplementationRegistry.hpp>
9 :
10 : namespace xsd
11 : {
12 : namespace cxx
13 : {
14 : namespace xml
15 : {
16 : namespace dom
17 : {
18 : template <typename C>
19 : XSD_DOM_AUTO_PTR<xercesc::DOMDocument>
20 0 : create_document ()
21 : {
22 0 : const XMLCh ls[] = {xercesc::chLatin_L,
23 : xercesc::chLatin_S,
24 : xercesc::chNull};
25 :
26 : // Get an implementation of the Load-Store (LS) interface.
27 : //
28 : xercesc::DOMImplementation* impl (
29 0 : xercesc::DOMImplementationRegistry::getDOMImplementation (ls));
30 :
31 : return XSD_DOM_AUTO_PTR<xercesc::DOMDocument> (
32 0 : impl->createDocument ());
33 : }
34 : }
35 : }
36 : }
37 : }
|