Forums de Wizou

Pour discuter des programmes de Wizou
It is currently Sun 28 Apr 2024, 01:56

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: nsisXML: Wildcards or recursive search?
PostPosted: Mon 04 Jul 2011, 13:16 
Offline

Joined: Mon 04 Jul 2011, 13:13
Posts: 2
Hi,

Thanks for producing an excellent plugin!

Is it possible to perform wildcard searches that give either multiple results or allow continuing search from the next node just found?

Cheers
Ste


Top
 Profile E-mail  
 
 Post subject: Re: nsisXML: Wildcards or recursive search?
PostPosted: Mon 04 Jul 2011, 22:35 
Offline
Site Admin

Joined: Sat 06 Aug 2005, 16:35
Posts: 719
With nsisXML::select, you can find an XML node by specifying a XPath expression.

You should study the XPath language a little as it is very powerful

nsisXML::select stops on the first node matching the expression
but you can suffix your XPath expression by [2] or [3] ... to reach the 2nd or 3rd node matching the expression

you can also use * as wildcard for a node, or use // (double-slash) to search recursively all node for a specific tag

_________________
Le site Web de Wizou: http://wizou.fr


Top
 Profile  
 
 Post subject: Re: nsisXML: Wildcards or recursive search?
PostPosted: Mon 04 Jul 2011, 22:41 
Offline

Joined: Mon 04 Jul 2011, 13:13
Posts: 2
Yes, yes. After I posted I noticed it was XPath. Know a little and have learnt enough to do what I require. Cheers for the heads up on te suffix, yet another way I could achieve my goal!

Nice one.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group