AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with Titan's xpath

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
diesalher



Joined: 14 Apr 2009
Posts: 28

PostPosted: Tue Jun 30, 2009 8:01 am    Post subject: Problem with Titan's xpath Reply with quote

if i have this xml

Code:

<data>
   <a id="a1"></a>
   <a id="a2">
       <b id="b1"></b>
       <b id="b2"></b>
   </a>
   <a id="a3"></a>
</data>


and i want to return the id of the "a" element which has a b child with id = b1

i use..

Code:

/data/a[b/@id = 'b1']/@id/text()   -->returns ai,a2,a3

/data/a[./b/@id = 'b1']/@id/text()   -->returns b1,b2



¿am i doing something wrong or it is a bug?[/code]
Back to top
View user's profile Send private message
diesalher



Joined: 14 Apr 2009
Posts: 28

PostPosted: Wed Jul 01, 2009 7:10 pm    Post subject: Reply with quote

nobody?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group