From f0510d2f90467de8e8f260b47d79a9baaf9bef17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2009 07:15:29 +0200 Subject: Start tracking XSD with git --- libxsd/xsd/cxx/xml/dom/wildcard-source.txx | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 libxsd/xsd/cxx/xml/dom/wildcard-source.txx (limited to 'libxsd/xsd/cxx/xml/dom/wildcard-source.txx') 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 +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include // chLatin_L, etc + +#include +#include + +namespace xsd +{ + namespace cxx + { + namespace xml + { + namespace dom + { + template + xml::dom::auto_ptr + 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 ( + impl->createDocument ()); + } + } + } + } +} + -- cgit v1.1