<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Search multiple words in xml]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
i got xml file with 2600000 lines. In this file describes a number of products. Each of the products is described as follows:</p>
<p dir="auto">&lt;PRODUCT mode=“new”&gt;<br />
&lt;SUPPLIER_PID&gt;285129&lt;/SUPPLIER_PID&gt;<br />
&lt;PRODUCT_DETAILS&gt;<br />
&lt;DESCRIPTION_SHORT lang=“pol”&gt;&lt;/DESCRIPTION_SHORT&gt;<br />
&lt;DESCRIPTION_LONG lang=“pol”&gt;&lt;/DESCRIPTION_LONG&gt;<br />
&lt;EAN&gt;&lt;/EAN&gt;<br />
&lt;SUPPLIER_ALT_PID&gt;&lt;/SUPPLIER_ALT_PID&gt;<br />
&lt;MANUFACTURER_PID&gt;&lt;/MANUFACTURER_PID&gt;<br />
&lt;MANUFACTURER_NAME&gt;&lt;/MANUFACTURER_NAME&gt;<br />
&lt;MANUFACTURER_TYPE_DESCR&gt;&lt;/MANUFACTURER_TYPE_DESCR&gt;<br />
&lt;SPECIAL_TREATMENT_CLASS type=“NOT_RELEVANT”&gt;NONE&lt;/SPECIAL_TREATMENT_CLASS&gt;<br />
&lt;KEYWORD lang=“pol”&gt;&lt;/KEYWORD&gt;<br />
&lt;/PRODUCT_DETAILS&gt;<br />
&lt;PRODUCT_ORDER_DETAILS&gt;<br />
&lt;ORDER_UNIT&gt;C62&lt;/ORDER_UNIT&gt;<br />
&lt;CONTENT_UNIT&gt;C62&lt;/CONTENT_UNIT&gt;<br />
&lt;NO_CU_PER_OU&gt;1&lt;/NO_CU_PER_OU&gt;<br />
&lt;PRICE_QUANTITY&gt;1&lt;/PRICE_QUANTITY&gt;<br />
&lt;QUANTITY_MIN&gt;1&lt;/QUANTITY_MIN&gt;<br />
&lt;QUANTITY_INTERVAL&gt;1&lt;/QUANTITY_INTERVAL&gt;<br />
&lt;/PRODUCT_ORDER_DETAILS&gt;<br />
&lt;PRODUCT_PRICE_DETAILS&gt;<br />
&lt;DATETIME&gt;<br />
&lt;DATE&gt;2016-01-26&lt;/DATE&gt;<br />
&lt;/DATETIME&gt;<br />
&lt;PRODUCT_PRICE&gt;<br />
&lt;PRICE_AMOUNT&gt;&lt;/PRICE_AMOUNT&gt;<br />
&lt;PRICE_CURRENCY&gt;EUR&lt;/PRICE_CURRENCY&gt;<br />
&lt;TAX&gt;0.19&lt;/TAX&gt;<br />
&lt;LOWER_BOUND&gt;1&lt;/LOWER_BOUND&gt;<br />
&lt;/PRODUCT_PRICE&gt;<br />
&lt;/PRODUCT_PRICE_DETAILS&gt;<br />
&lt;/PRODUCT&gt;</p>
<p dir="auto">In line &lt;SUPPLIER_PID&gt; 285129 &lt;/ SUPPLIER_PID&gt; is given No. of the product. I need an easy way to find hundreds of No. of the product in this file and remove all lines on this (all that is between the &lt;PRODUCT mode = “new”&gt; and &lt;/ PRODUCT&gt;). In my xml file is not repeated No. of products so I want to do it automatically.</p>
<p dir="auto">Is there any way of doing this?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11780/search-multiple-words-in-xml</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 06:31:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11780.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 May 2016 10:50:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search multiple words in xml on Thu, 12 May 2016 08:51:20 GMT]]></title><description><![CDATA[<p dir="auto">Not sure if I got this right: You are trying to remove PRODUCT Tags for a specific SUPPLIER_PID? If so try this:</p>
<ul>
<li>Go to Search-&gt;Replace</li>
<li>Search for <code>&lt;PRODUCT mode="new"&gt;\R&lt;SUPPLIER_PID&gt;285129&lt;/SUPPLIER_PID&gt;.*?&lt;/PRODUCT&gt;</code></li>
<li>Replace with nothing</li>
<li>Select Regular Expressions. Make sure “. matches \r and \n” <strong>is</strong> checked</li>
<li>Hit “Replace all”</li>
</ul>
<p dir="auto">But if you have to do this kind of job on a regular basis, you may want to look for a Tool that is more specifically made for manipulation of XML by XPath.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/15901</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/15901</guid><dc:creator><![CDATA[gerdb42]]></dc:creator><pubDate>Thu, 12 May 2016 08:51:20 GMT</pubDate></item></channel></rss>