Reputation: 1
typetext controlkey,a
typetext controlkey,c
put remoteclipboard(5) as a tree into myTree
put item 4 of myTree into a
delete every occurrence of "<!--" from a
log a
My variable a will have a XML tag(commented) value, i am trying to uncomment the XMl tag.
Upvotes: 0
Views: 128
Reputation:
It's probably easier to do treat the XML as text when you remove the comments, rather than turning it into a tree. Use a pattern with the delete
command as follows:
delete every occurrence of <"<!--" then some characters then "-->"> in myXml
Upvotes: 0