List Info

Thread: XPath and MT environments




XPath and MT environments
user name
2006-08-07 13:39:13
Hi,

Is it safe to create and use multiple XPath contexts (using 
xmlXPathNewContext) using the same xmlDocPtr?
I have an xmlDocPtr to a parsed XML document, which will not
be changed, 
and I want to run XPath queries on that document, possibly
from multiple 
threads.

Kris Breuker
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
XPath and MT environments
user name
2006-08-07 14:34:29
On Mon, Aug 07, 2006 at 03:39:13PM +0200, Kris Breuker
wrote:
> Hi,
> 
> Is it safe to create and use multiple XPath contexts
(using 
> xmlXPathNewContext) using the same xmlDocPtr?
> I have an xmlDocPtr to a parsed XML document, which
will not be changed, 
> and I want to run XPath queries on that document,
possibly from multiple 
> threads.

 yes.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )