Forcing xmlXPathCompile to not compile streaming

"Shivan Kaul Sahib (ssahib)" <[email protected]>
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <[email protected]>
Hi,

I’m linking against a 2.9.4 version of libxml2. I use:

`xmlXPathCompExprPtr comp = xmlXPathCompile(BAD_CAST str)`

in order to get the compiled xpath comp. However, if the xpath is too ‘simple’ (for e.g. /a/b/c), i.e. it does not contain any verbose axis specifiers “::” or predicates etc, then the xpath is automatically compiled to a streaming xpath and the last member of the comp struct is set to be -1.

Is there any way of disabling this streaming optimization while calling the compilation function?

Thanks,
Shivan

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.