Hi,
I'm assuming there is some content between the tags:
- Code: Select all
<name type="place">
...(content)
</name>
If there isn't you can simply use the Find/Replace in Files and replace one string with the other.
If there is content between the tags and the name elements aren't nested (name inside another name element) you can do this in two steps with Find -> Find/Replace in Files in Oxygen 11.1(which has XPath and XML filters):
Step 1 - Replace element 'name'(with attribute type="place") -> 'placeName':
Text to find: '
name'
Case sensitive,
Whole words onlyRestrict to XPath:
//name[@type="place"]Enable XML search options(checked)
Search only in:
Element names(checked)
Replace with: '
placeName'
Make sure the correct scope and filters are specified.
You can try first a 'Find All' to check if it does what is expected and then 'Replace All'.
Step 2 - Remove ' type="place"' from elements 'placeName':
Text to find: '
type="place"'
Case sensitiveRestrict to XPath:
//placeName[@type="place"]Enable XML search options(
unchecked)
Replace with: ''(
empty)
Again make sure the correct scope and filters are specified and maybe try a Find All to check the find results.
Let me know if you need further help.
Regards,
Adrian