Replace within certain parts of XML file?
I have a huge XML file I need to do a Search and Replace operation, but only within the content of the XML, not the tags (so, not change anything between < and >).
Manager having to edit, I have no clue of regular expressions. My editor of choice is Notepad++ but I'll use another tool if I have to.
So in the following snippet:
<resource key="Facility_Picker.lblallFac开发者_Python百科ilities">Available **Facilities**</resource>
Replace the second 'Facilities', not the first (as that would break the code, obviously).
Thanks!
XML and RegExp is a very bad combination (since the structure of XML is inherently non-regular), so I would recommend against regular expressions for this task.
I havent tried this program, but you can see if it works for you: http://xmlsearchreplace.codeplex.com/ It should be able to do what you want to, and if you can load you file in NotePad++ then it can't be that big..
精彩评论