LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2004, 05:52 AM   #1
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Help with XPath please


Hi all, I wonder if someone can help me with an XPath problem.
I've got an IXMLDOMNodeList, which contains <Channel> tags. Each of these has an "id" attribute, uniquely identifying it. What I wondered, was is there a quick way to jump straight to a particular tag, based on the value of this attribute? At the moment, I'm iterating through the entire list to find the one I want, but this is hopelessly slow (it's a very big file). Any help will be much appreciated.

Thanks!
 
Old 11-12-2004, 07:45 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
ain't it just summink like?

Code:
//channel[@id='blah']
or maybe i don't get it?

regards billy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to implemtn XPATH irfanhab Programming 1 08-27-2004 10:57 AM
php xpath ??? howto??? amirspl Programming 0 09-20-2003 06:21 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration