From f05e742b88e3ebf7401c252332022f1a2f7eb8b0 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 4 Jul 2014 22:41:17 +0200 Subject: Changed FunctionTransform result type to node-set * using xalan::FormatterToXercesDOM internally ** this required changes to the TransformationFacade::generate member method overloads * TransformationFacade::generate now accepts references to xalan::FormatterListener instances ** "generate(std::basic_ostream&..." instantiates a xalan::FormatterToXML and passes it to the actual generate member method * changed ResultNodeFacade's "getNode" method into a "getResultElement" method ** xalan::FormatterToXercesDOM requires a xercesc::DOMElement instance instead of the previously available xercesc::DOMNode instance ** changed FunctionReadDirectory accordingly * adapted FunctionTransform test case accordingly --- src/support/dom/result_node_facade.cc | 2 +- src/support/dom/result_node_facade.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/support') diff --git a/src/support/dom/result_node_facade.cc b/src/support/dom/result_node_facade.cc index eeb2cc6..570b4e1 100644 --- a/src/support/dom/result_node_facade.cc +++ b/src/support/dom/result_node_facade.cc @@ -22,7 +22,7 @@ ResultNodeFacade::~ResultNodeFacade() { this->root_node_->appendChild(this->result_node_); } -xercesc::DOMNode* ResultNodeFacade::getNode() { +xercesc::DOMElement* ResultNodeFacade::getResultElement() { return this->result_node_; } diff --git a/src/support/dom/result_node_facade.h b/src/support/dom/result_node_facade.h index bf73582..c7e831e 100644 --- a/src/support/dom/result_node_facade.h +++ b/src/support/dom/result_node_facade.h @@ -18,7 +18,7 @@ class ResultNodeFacade { ); ~ResultNodeFacade(); - xercesc::DOMNode* getNode(); + xercesc::DOMElement* getResultElement(); void setAttribute(const std::string&, const std::string&); void setValueNode(const std::string&, const std::string&); -- cgit v1.2.3