Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-18-2012, 01:07 PM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-14-2003
Posts: 44
Help with XPATH

Once again I am struggling with XPATH so I apologize ahead of time for asking for help.

I have the following xml:

<foo>
<bar>
<name>John</name>
</bar>
<baz>
<name>Bob</name>
</baz>
<bang>
<name>Pete</name>
</bang>
</foo>

I need to read the xml and read the node names under "foo" and then loop on each node to read the name. So what I am looking for is a loop that returns me "bar" and "John", second iteration "baz" and "Bob" and third iteration "bang" and "Pete". I also need to do some processing on these values.

Any help would be greatly appreciated.
Reply With Quote
  #2  
Old 06-18-2012, 01:52 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
See the attached sample.
Attached Files
File Type: bld xml7.bld (1.5 KB, 1297 views)
Reply With Quote
Reply

Tags
xml , xpath

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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



All times are GMT -5. The time now is 06:40 PM.


Copyright © 1999-2023 Kinook Software, Inc.