Hello,
i have an xml file, and what i want to do is to replace the value of a specific element (<umps>) with some text dynamically.
More specifically, here is the xml life:
and here is what i want to do:
I'm trying to replace the content of the "umps" element with another text. I mean, i don't care about the current content of the umps element.
I tried to use Regular expressions , but i found difficulty in managing it.
Any help??
i have an xml file, and what i want to do is to replace the value of a specific element (<umps>) with some text dynamically.
More specifically, here is the xml life:
Code:
<rule id = "onlyFirstName"> <tag>FirstName=''; userID=''</tag> <one-of> <item><umps>PersonalDetails:FirstName</umps><tag>FirstName=<umps>PersonalDetails:FirstName</umps>; userID=<umps>userID</umps></tag></item> </one-of> </rule>
Code:
<rule id = "onlyFirstName"> <tag>FirstName=''; userID=''</tag> <one-of> <item><umps>new_Data</umps><tag>FirstName=<umps>another_new_Data_dynamically</umps>; userID=<umps>another_new_one</umps></tag></item> </one-of> </rule>
I tried to use Regular expressions , but i found difficulty in managing it.
Any help??
Comment