Copying content without tags from an XML file in Notepad++ -
i'm not quite familiar xml files , notepad++, simple solution better, clumsy may be.
i have large xml file , i'm trying copy content between tags (hope terminology right). sure i'm clear, text in screenshot below copy following text , paste elsewhere:
discussion
in study i
have demonstrated
an approach the
is there simple , quick way many lines of text @ once?
any appreciated!
open find , replace window pressing ctrl+h.
set 'search mode' 'regular expression'.
in 'find what' text box enter: (?s)<[^><]*?>
, leave 'replace with' text box empty.
press replace button , tags should disappear.
this quick , easy fix using notepad++ may not work if there cdata tags present or comments containing < or >. you'll need xml parser more reliable transformations.
Comments
Post a Comment