Find and Replace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dhanshet
    New Member
    • Feb 2009
    • 1

    Find and Replace

    Hi All,

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

    Code:
    <xml>
    
    ---
    <IP="192.10.34.79" name="xyz">
    
    ----
    </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.

    Regards
    -dhanshet.
    Last edited by eWish; Feb 2 '09, 10:07 PM. Reason: Please use code tags
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    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?

    --Kevin

    Comment

    Working...