Forums de Wizou

Pour discuter des programmes de Wizou
It is currently Wed 24 Apr 2024, 21:23

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: xmlns problem II
PostPosted: Thu 04 Sep 2014, 17:10 
Offline

Joined: Thu 04 Sep 2014, 16:54
Posts: 1
Hi,

I'm trying to select nodes that have xmlns attributes without success.
The following code returns 0 in $1 and $2
Code:
nsisXML::select '//spr:bean[@id="catsNdogs"]'

I might need to open another post for this but there's another small bug which would be nice to get fixed - nsisXML can't open xml files with hyphen "-" in the name.
Haven't tried any other special characters as I only came across with the hyphen as yet.

Hopefully you have a solution for the ones above.

Thanks,
Feri


Top
 Profile E-mail  
 
 Post subject: Re: xmlns problem II
PostPosted: Thu 18 Sep 2014, 01:56 
Offline
Site Admin

Joined: Sat 06 Aug 2005, 16:35
Posts: 719
Basically nsisXML::select is based on XPath support in MSXML
So after a few google search, i found this solution for you:

Try this:
//*[namespace-uri() = 'spr']
to select all nodes from the spr namespace

You can then refine this XPath to further match the node you want

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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