PDA

View Full Version : Replace text within an XML file.


nik180
03-18-2005, 11:19 AM
I have two replacements I want to make within an XML file. One replace ment I want to look at something like

<Workspace Name="Random Text" Id="96F45C61-E5F9-4744-926F-76A5A37E008A" SystemName="Workspace" Description="Random Text" PortraitVersion="2.6" MasterFileName="" ReleaseNumber="0" SCC_ProjName="" SCC_AuxProjPath="">

and delete whatever is between quotes uner Release Number="0". The values between quotes always change. The second replacement I want to do is that I want to delete whatever is between two XML tags. This could include multiple lines. What would be the best approach?

kinook
03-18-2005, 06:07 PM
The attached sample shows one way.

nik180
03-25-2005, 10:09 AM
Thank You. Worked great.