Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-27-2005, 01:32 PM
VBuild_Rookie VBuild_Rookie is online now
Registered User
 
Join Date: 05-07-2004
Posts: 23
Replace in FILE ...need help

I'm trying to use the Replace In file step for replacing values in an xml file...I have these tags
<BuildNumber version = x.x.x.x/>
<DataCenter name = "blah"/>
<Environment name = "blah"/>

I have this is the step
<BuildNumber version = [[^<]]/>
<DataCenter name = [[^<]]/>
<Environment name = [[^<]]/>

doesn't work but if I have just one set like
<BuildNumber version = x.x.x.x/>
and
<BuildNumber version = [[^<]]/>

works fine....I need to replace all 3 in one step....is there a way??
Reply With Quote
  #2  
Old 06-27-2005, 02:46 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
http://www.kinook.com/Forum/showthread.php?threadid=492
Reply With Quote
  #3  
Old 06-27-2005, 03:17 PM
VBuild_Rookie VBuild_Rookie is online now
Registered User
 
Join Date: 05-07-2004
Posts: 23
ok I tried it but can't get it to work here is what I got
(^<BuildNumber version=[[^<]]+/>)|(^<DataCenter name=[[^<]]+/>)

then replace with

(?1<BuildNumber version="3.0.0.0")(?2DataCenter name="ha ha")


by the way these are not the only things in the xml file the xml file containts many other lines and the lines above appear a few times under different tags paths...
Reply With Quote
  #4  
Old 06-27-2005, 03:52 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Here's one way (attached).
Attached Files
File Type: bld replace_three.bld (1.4 KB, 805 views)
Reply With Quote
Reply

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 11:40 PM.


Copyright © 1999-2023 Kinook Software, Inc.