Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2005, 11:08 AM
Authorized User
 
Join Date: Jun 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default XPathNavigator - Compiling XPath Queries

Hello,

My questions are in regards to the compilation of xpath queries using the compile() method in the XPathNavigator class.

1) If my application does not use caching is it worth compiling the xpath queries before executing them?

2) I've read that when executing xpath queries via XPathNavigator's select() method that the query is implicity compiled. Is this true? If so then why bother explicitly calling the compile() method?

3) I've also read that compiled queries come into use when the same query is called multiple times. How can I check that a query is compiled before calling the compile() method. That is, say I have a recursive function that compiles and executes a xpath query. Is there a way I can check if the query has already been compiled so I don't have to call the compile() method again?

Thanks for the replies!






Similar Threads
Thread Thread Starter Forum Replies Last Post
XPATH Queries in SQLSERVER mikedeepak SQL Server 2000 1 July 12th, 2007 10:13 AM
help with compiling mastrgamr C++ Programming 5 November 13th, 2006 08:04 AM
Compiling MattLeek C# 6 April 30th, 2006 04:57 PM
Combining Queries or results from 2 queries Ford SQL Server 2000 24 November 7th, 2005 08:54 PM
Compiling Zweiglumen C# 0 February 3rd, 2005 10:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.