<?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[Bulk Editing Values in XML Files]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I’ve got a bit of a niche situation that comes up annoyingly often for me when modding: I need to bulk edit values within an entry in an XML file.</p>
<p dir="auto">So, say I have the entry &lt;hitpoints&gt;****.**&lt;/hitpoints&gt;. Whatever the value of the asterisks is, regardless of the formatting (decimals or whatnot), needs to be modified by a multiplier and then repeated across all entries until the end of the document. As far as I’m aware I’ll need to use a python script, but I’ve very limited prior experience with python, so I don’t know what that would like or how to integrate it into Notepad++.</p>
<p dir="auto">Any help would be appreciated!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25252/bulk-editing-values-in-xml-files</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 13:49:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25252.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Dec 2023 23:10:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bulk Editing Values in XML Files on Sat, 16 Dec 2023 01:42:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a></p>
<p dir="auto">This is exactly what I was hoping for. Python is well and good, but I haven’t dived into it for good reason. Thanks for letting me know this exists ^.^</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91266</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91266</guid><dc:creator><![CDATA[ashiruni]]></dc:creator><pubDate>Sat, 16 Dec 2023 01:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to Bulk Editing Values in XML Files on Sat, 16 Dec 2023 00:51:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ashiruni" aria-label="Profile: ashiruni">@<bdi>ashiruni</bdi></a> said in <a href="/post/91262">Bulk Editing Values in XML Files</a>:</p>
<blockquote>
<p dir="auto">So, say I have the entry &lt;hitpoints&gt;****.**&lt;/hitpoints&gt;. Whatever the value of the asterisks is, regardless of the formatting (decimals or whatnot), needs to be modified by a multiplier and then repeated across all entries until the end of the document.</p>
</blockquote>
<p dir="auto">If you can reliably identify the value to be multiplied using a regular expression, the <a href="https://github.com/Coises/ColumnsPlusPlus/releases" rel="nofollow ugc">Columns++</a> plugin can do this.</p>
<p dir="auto">After installing the plugin, you would select <strong>Search…</strong> from the Columns++ menu, then fill in:</p>
<p dir="auto"><strong>Find what : <code>&lt;hitpoints&gt;([\d.]+)&lt;/hitpoints&gt;</code></strong><br />
<strong>Replace with : <code>&lt;hitpoints&gt;(?=reg(1)*</code>n<code>)&lt;/hitpoints&gt;</code></strong><br />
<strong>Search Mode: Regular Expression</strong></p>
<p dir="auto">(replacing <strong>n</strong> with the multiplier) and then click <strong>Replace All</strong>.</p>
<p dir="auto">Detailed help for <a href="https://coises.github.io/ColumnsPlusPlus/help.htm#search" rel="nofollow ugc">Search</a> and <a href="https://coises.github.io/ColumnsPlusPlus/help.htm#formulas" rel="nofollow ugc">Formulas</a> is available. This plugin is not yet available through Plugins Admin, but you can use the Quick Installer at the first link if you have Notepad++ installed in the default location; otherwise, install <a href="https://github.com/Coises/ColumnsPlusPlus#installation" rel="nofollow ugc">as explained here</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/91264</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91264</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sat, 16 Dec 2023 00:51:33 GMT</pubDate></item><item><title><![CDATA[Reply to Bulk Editing Values in XML Files on Fri, 15 Dec 2023 23:26:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ashiruni" aria-label="Profile: ashiruni">@<bdi>ashiruni</bdi></a> said in <a href="/post/91262">Bulk Editing Values in XML Files</a>:</p>
<blockquote>
<p dir="auto">needs to be modified by a multiplier<br />
… As far as I’m aware I’ll need to use a python script</p>
</blockquote>
<p dir="auto">Correct.  See the <a href="/topic/23170">FAQ: Can I do a Mathematical Replacement</a>.  It gives examples of how to do simple math replacements in the PythonScript plugin (it shows addition, but I think you can figure out how to change it to multiplication; the FAQ also links to another FAQ to show you how to set up the PythonScript plugin and run an example script).  The regex needed to catch something in the <code>&lt;hitpoints&gt;</code> tag as you showed would be <code>&lt;hitpoints&gt;(\d+\.\d+)&lt;/hitpoints&gt;</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/91263</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/91263</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 15 Dec 2023 23:26:56 GMT</pubDate></item></channel></rss>