I am using tinyxpath for implementing a functionality similar to MSXML's selectSingleNode. I create a xpath_processor object and pass the node and the xpath string. Then i call u_compute_xpath_node_set (). This computes the node set and also returns the number of nodes. This takes a very long time if the xml file is large. Is there a way to get only the first matching node using tinyxpath. I also tried TinyXPath::XNp_xpath_node but internally it also calls u_compute_xpath_node_set () which takes a very long time to process a large xml file.
I do not understand why it should take so long to process the xpath once the document is loaded in memory. MSXML does not take so much time for selectSingleNode.
Any ideas/suggestions will be much appreciated.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.