diff --git a/examples/XPath/xgrep.cpp b/examples/XPath/xgrep.cpp index eb6a763b..cdbdf317 100644 --- a/examples/XPath/xgrep.cpp +++ b/examples/XPath/xgrep.cpp @@ -55,6 +55,7 @@ int main(int argc, char* argv[]) if(!eh.errorsReported()) { DOM::Document doc = domParser.getDocument(); + // doc.normalize(); Arabica::XPath::XPathValuePtr result; result = xpath->evaluate(doc); if(result->asBool()) @@ -65,7 +66,7 @@ int main(int argc, char* argv[]) const Arabica::XPath::NodeSet& ns = result->asNodeSet(); for(unsigned int i = 0; i < ns.size(); ++i) { - DOM::Element n = static_cast >(ns[i]); + DOM::Node n = ns[i]; std::cout << n << std::endl; } } // if ..