Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-30-2009, 06:36 PM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-15-2003
Posts: 44
Using XPath to update a node

I am using VB6 and trying to update a value for a node. Here is an example of my xml.

<Room>
_______<Shelf>
_____________<Book>
___________________<Name>Tiny Tim</Name>
___________________<Author>Joe</Author>
___________________<Condition>New</Condition>
_____________</Book>
_____________<Book>
___________________<Name>Atlas Shrugged</Name>
___________________<Author>Ayn Rand</Author>
___________________<Condition>Used</Condition>
_____________</Book>
_______</Shelf>
</Room>

So what I want to do is I need to update the conditions of all my books. However each book has it's own unique condition. How can I use XPATH in a Write XML step to update a given book's condition based the books name, from the example above?
Reply With Quote
  #2  
Old 09-30-2009, 09:22 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
See attached sample (requires v7).
Attached Files
File Type: bld xpath3.bld (1.2 KB, 1688 views)
Reply With Quote
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



All times are GMT -5. The time now is 12:57 AM.


Copyright © 1999-2023 Kinook Software, Inc.