By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,372 Members | 1,906 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,372 IT Pros & Developers. It's quick & easy.

Find and Replace

P: 1
Hi All,

I have a file name configure.xml and its content is,

Expand|Select|Wrap|Line Numbers
  1. <xml>
  3. ---
  4. <IP="" name="xyz">
  6. ----
  7. </xml> 
something similar like this.

So my Q? is, how to find and replace the value of IP and name in the configure.xml file according to the IP and name variable ?.

Please solve me out of this.

Feb 2 '09 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 971
You can use a regex to find what you are looking for or you could use a module to parse the XML file.

Have you tired anything?

Feb 2 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.