diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 07:15:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 07:15:29 +0200 |
commit | f0510d2f90467de8e8f260b47d79a9baaf9bef17 (patch) | |
tree | 0b9929946f06a9cbe9b9e8f2a7600dae4e048f79 /libxsd/xsd/cxx/xml/dom/wildcard-source.txx |
Start tracking XSD with git
Diffstat (limited to 'libxsd/xsd/cxx/xml/dom/wildcard-source.txx')
-rw-r--r-- | libxsd/xsd/cxx/xml/dom/wildcard-source.txx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libxsd/xsd/cxx/xml/dom/wildcard-source.txx b/libxsd/xsd/cxx/xml/dom/wildcard-source.txx new file mode 100644 index 0000000..dcd54d2 --- /dev/null +++ b/libxsd/xsd/cxx/xml/dom/wildcard-source.txx @@ -0,0 +1,39 @@ +// file : xsd/cxx/xml/dom/wildcard-source.txx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include <xercesc/util/XMLUniDefs.hpp> // chLatin_L, etc + +#include <xercesc/dom/DOMImplementation.hpp> +#include <xercesc/dom/DOMImplementationRegistry.hpp> + +namespace xsd +{ + namespace cxx + { + namespace xml + { + namespace dom + { + template <typename C> + xml::dom::auto_ptr<xercesc::DOMDocument> + create_document () + { + const XMLCh ls[] = {xercesc::chLatin_L, + xercesc::chLatin_S, + xercesc::chNull}; + + // Get an implementation of the Load-Store (LS) interface. + // + xercesc::DOMImplementation* impl ( + xercesc::DOMImplementationRegistry::getDOMImplementation (ls)); + + return xml::dom::auto_ptr<xercesc::DOMDocument> ( + impl->createDocument ()); + } + } + } + } +} + |