Page 1 of 1

Replacing data between XML tags

Posted: Wed Feb 09, 2011 6:42 pm
by wdfreemanjr
I need to remove all data between the <sso:Value> tags. Data can be alpha and/or numeric of varying lengths and formats. The entire document is contained on a single line

Starting Value
<sso:Value>Data</sso:Value><sso:Value>Data</sso:Value>

Ending Value
<sso:Value></sso:Value><sso:Value></sso:Value>

Posted: Wed Feb 09, 2011 11:37 pm
by ben_josephs
If there are no tags within the <sso:Value> elements, try:

Search | Replace... (<F8>):
Find what: <sso:Value>[^<]*</sso:Value>
Replace with: <sso:Value></sso:Value>

[X] Regular expression

Replace All