Revision 111, 1.1 kB
(checked in by mido, 17 years ago)
|
pridana knihovna XSD (a jeji chlebodarkyne XERCES), v ramci Win32 zprovoznen priklad tests/test_xsd_hello.cxx
|
Line | |
---|
1 | // file : xsd/cxx/xml/dom/wildcard-source.txx |
---|
2 | // author : Boris Kolpackov <boris@codesynthesis.com> |
---|
3 | // copyright : Copyright (c) 2005-2008 Code Synthesis Tools CC |
---|
4 | // license : GNU GPL v2 + exceptions; see accompanying LICENSE file |
---|
5 | |
---|
6 | #include <xercesc/util/XMLUniDefs.hpp> // chLatin_L, etc |
---|
7 | |
---|
8 | #include <xercesc/dom/DOMImplementation.hpp> |
---|
9 | #include <xercesc/dom/DOMImplementationRegistry.hpp> |
---|
10 | |
---|
11 | namespace xsd |
---|
12 | { |
---|
13 | namespace cxx |
---|
14 | { |
---|
15 | namespace xml |
---|
16 | { |
---|
17 | namespace dom |
---|
18 | { |
---|
19 | template <typename C> |
---|
20 | xml::dom::auto_ptr<xercesc::DOMDocument> |
---|
21 | create_document () |
---|
22 | { |
---|
23 | const XMLCh ls[] = {xercesc::chLatin_L, |
---|
24 | xercesc::chLatin_S, |
---|
25 | xercesc::chNull}; |
---|
26 | |
---|
27 | // Get an implementation of the Load-Store (LS) interface. |
---|
28 | // |
---|
29 | xercesc::DOMImplementation* impl ( |
---|
30 | xercesc::DOMImplementationRegistry::getDOMImplementation (ls)); |
---|
31 | |
---|
32 | return xml::dom::auto_ptr<xercesc::DOMDocument> ( |
---|
33 | impl->createDocument ()); |
---|
34 | } |
---|
35 | } |
---|
36 | } |
---|
37 | } |
---|
38 | } |
---|