equal
deleted
inserted
replaced
21 #include <iostream> |
21 #include <iostream> |
22 #include <string> |
22 #include <string> |
23 #include <vector> |
23 #include <vector> |
24 #include <algorithm> |
24 #include <algorithm> |
25 |
25 |
|
26 #include <xercesc/sax2/SAX2XMLReader.hpp> |
|
27 #include <xercesc/sax2/XMLReaderFactory.hpp> |
|
28 #include <xercesc/sax2/DefaultHandler.hpp> |
|
29 #include <xercesc/util/XMLString.hpp> |
|
30 |
26 #include <relpipe/writer/typedefs.h> |
31 #include <relpipe/writer/typedefs.h> |
27 |
32 |
28 namespace relpipe { |
33 namespace relpipe { |
29 namespace in { |
34 namespace in { |
30 namespace xml { |
35 namespace xml { |
32 class XMLCommand { |
37 class XMLCommand { |
33 public: |
38 public: |
34 |
39 |
35 void process(std::istream& input, std::ostream& output) { |
40 void process(std::istream& input, std::ostream& output) { |
36 using namespace relpipe::writer; |
41 using namespace relpipe::writer; |
|
42 using namespace xercesc; |
37 std::shared_ptr<RelationalWriter> writer(Factory::create(output)); |
43 std::shared_ptr<RelationalWriter> writer(Factory::create(output)); |
38 |
44 |
39 // TODO: remove demo |
45 // TODO: remove demo |
40 // Various data types passed as strings |
46 // Various data types passed as strings |
41 writer->startRelation(L"xml",{ |
47 writer->startRelation(L"xml",{ |