XQUERY3 seems to work, gow for it!!

This commit is contained in:
King_DuckZ 2020-03-31 20:11:30 +02:00
parent bdb858de5a
commit 55eb7c1fc0

View file

@ -58,7 +58,7 @@ namespace duck {
xercesc::MemBufInputSource input_buf(reinterpret_cast<const XMLByte*>(parXML.c_str()), parXML.size(), "n/a", false); xercesc::MemBufInputSource input_buf(reinterpret_cast<const XMLByte*>(parXML.c_str()), parXML.size(), "n/a", false);
BatchResults retval; BatchResults retval;
try { try {
AutoDelete<DynamicContext> context(xqilla.createContext(XQilla::XQUERY_UPDATE, &xconfig)); AutoDelete<DynamicContext> context(xqilla.createContext(XQilla::XQUERY3_UPDATE, &xconfig));
//see http://xqilla.sourceforge.net/docs/simple-api/classStaticContext.html#adc869a84712459fa49db67fe837c9b01 //see http://xqilla.sourceforge.net/docs/simple-api/classStaticContext.html#adc869a84712459fa49db67fe837c9b01
context->setDefaultElementAndTypeNS(u"http://www.w3.org/1999/xhtml"); context->setDefaultElementAndTypeNS(u"http://www.w3.org/1999/xhtml");
Node::Ptr ptr = context->parseDocument(input_buf); Node::Ptr ptr = context->parseDocument(input_buf);