<?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[Help wanted with XML editing]]></title><description><![CDATA[<p dir="auto">Below is an example of some game config files that I 'am writing/changing/editing/modding.</p>
<pre><code>&lt;WinchVariants&gt;
	&lt;Winch
		Name="w_medium_trucks_default"
		Length="28.0"
		StrengthMult="0.5"
		IsEngineIgnitionRequired="true"
	&gt;
		&lt;GameData
			Price="1000"
			UnlockByExploration="false"
			UnlockByRank="1"
		&gt;
			&lt;WinchParams
			/&gt;
			&lt;UiDesc
				UiDesc="UI_WINCH_UPGRADE_MED_TRUCKS_DEFAULT_DESC"		
				UiIcon30x30=""
				UiIcon40x40=""
				UiName="UI_WINCH_UPGRADE_MED_TRUCKS_DEFAULT_NAME"
			/&gt;
		&lt;/GameData&gt;
	&lt;/Winch&gt;
	&lt;Winch
		Name="w_medium_trucks_ext"
		Length="36.0"
		StrengthMult="0.5"
		IsEngineIgnitionRequired="true"
	&gt;
		&lt;GameData
			Price="11300"
			UnlockByExploration="false"
			UnlockByRank="8"
		&gt;
			&lt;WinchParams
			/&gt;
			&lt;UiDesc
				UiDesc="UI_WINCH_UPGRADE_MED_TRUCKS_EXT_DESC"
				UiIcon30x30=""
				UiIcon40x40=""
				UiName="UI_WINCH_UPGRADE_MED_TRUCKS_EXT_NAME"
			/&gt;
		&lt;/GameData&gt;
	&lt;/Winch&gt;
	&lt;Winch
		Name="w_medium_trucks_pow"
		Length="28.0"
		StrengthMult="0.65"
		IsEngineIgnitionRequired="true"
	&gt;
		&lt;GameData
			Price="15000"
			UnlockByExploration="false"
			UnlockByRank="12"
		&gt;
			&lt;WinchParams
			/&gt;
			&lt;UiDesc
				UiDesc="UI_WINCH_UPGRADE_MED_TRUCKS_POW_DESC"
				UiIcon30x30=""
				UiIcon40x40=""
				UiName="UI_WINCH_UPGRADE_MED_TRUCKS_POW_NAME"
			/&gt;
		&lt;/GameData&gt;
	&lt;/Winch&gt;
		&lt;Winch
		Name="w_medium_trucks_ext_pow"
		Length="36.0"
		StrengthMult="0.65"
		IsEngineIgnitionRequired="true"
	&gt;
		&lt;GameData
			Price="18800"
			UnlockByExploration="false"
			UnlockByRank="16"
		&gt;
			&lt;WinchParams
			/&gt;
			&lt;UiDesc
				UiDesc="UI_WINCH_UPGRADE_MED_TRUCKS_EXT_POW_DESC"
				UiIcon30x30=""
				UiIcon40x40=""
				UiName="UI_WINCH_UPGRADE_MED_TRUCKS_EXT_POW_NAME"
			/&gt;
		&lt;/GameData&gt;
	&lt;/Winch&gt;
&lt;/WinchVariants&gt;

</code></pre>
<p dir="auto">I want to be able to take notes and document what I’m writing/changing/editing I can do this by using this <code>&lt;!-- /--&gt;</code> well it kind of lets me do it.</p>
<p dir="auto">Here is an example below of it in the document/file I’m editing</p>
<pre><code>&lt;WinchVariants&gt;
	&lt;Winch
		Name="w_medium_trucks_default"
		Length="28.0" &lt;!-- *2 /--&gt;
		StrengthMult="0.5" &lt;!-- /0.5/--&gt;
		IsEngineIgnitionRequired="true"
	&gt;
		&lt;GameData
			Price="1000" &lt;!-- *2 /--&gt;
			UnlockByExploration="false" &lt;!-- Make them all false/--&gt;
			UnlockByRank="1" &lt;!-- Etc Etc Etc/--&gt;
		&gt;
			&lt;WinchParams ...........
</code></pre>
<p dir="auto">In the document/file when you have inserted <code>&lt;!-- /--&gt;</code> somewhere (see example above) everything below that piece of code turns black until you get to <code>/&gt;</code>.<br />
After that everything is fine until I insert another<code>&lt;!-- /--&gt;</code> and the steps just explained repeat themselves till the end of the document/file.</p>
<p dir="auto">Any help on how to get this to work line by line would be great.</p>
<p dir="auto">Info on the file:<br />
XML (eXtensible Markup Language file), Windows (CR LF), UTF-8, INS<br />
Not sure if this above is helpful or changes anything but that I’d put it in there anyway😁</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23184/help-wanted-with-xml-editing</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 01:31:22 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23184.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Jul 2022 08:31:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help wanted with XML editing on Fri, 01 Jul 2022 12:57:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/john-russell" aria-label="Profile: John-Russell">@<bdi>John-Russell</bdi></a> ,</p>
<p dir="auto">Notepad++ is doing its best in syntax highlighting the invalid XML you are feeding it.</p>
<p dir="auto">I confirmed with the Hive Mind that XML comments (<code>&lt;!-- ... --&gt;</code>) are <em>not</em> allowed inside the open tag (<code>&lt;GameData ... &gt;</code>)<br />
<img src="/assets/uploads/files/1656679924217-b3b619ac-c834-464f-b02d-920bd0e11487-image.png" alt="b3b619ac-c834-464f-b02d-920bd0e11487-image.png" class=" img-fluid img-markdown" /><br />
– specifically, that first match is quoting from <a href="https://stackoverflow.com/questions/38674496/xml-comment-inside-element#:~:text=No%2C%20this%20isn't%20possible,in%20an%20XML%20open%20tag." rel="nofollow ugc">this SO answer</a>, which <a href="https://stackoverflow.com/questions/26461869/how-do-i-comment-attributes-inside-an-xml-tag" rel="nofollow ugc">links to another one</a></p>
<p dir="auto">For example:<br />
<img src="/assets/uploads/files/1656680022326-c6d40b77-02ff-4325-98ca-97ff6b273d82-image.png" alt="c6d40b77-02ff-4325-98ca-97ff6b273d82-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1656680044464-6c647d96-da16-4a1a-8149-c5577c5c7191-image.png" alt="6c647d96-da16-4a1a-8149-c5577c5c7191-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So the strange highlighting successfully told you that you were doing something wrong.  It’s probably time for you to go study XML some more, to better understand the rules for the language.  (And this Forum is <a href="https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place">not the right place</a> for generic XML learning/questions)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78056</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78056</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 01 Jul 2022 12:57:56 GMT</pubDate></item><item><title><![CDATA[Reply to Help wanted with XML editing on Fri, 01 Jul 2022 11:30:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/john-russell" aria-label="Profile: john-russell">@<bdi>john-russell</bdi></a> said in <a href="/post/78050">Help wanted with XML editing</a>:</p>
<blockquote>
<p dir="auto">I want to be able to take notes and document what I’m writing/changing/editing</p>
</blockquote>
<p dir="auto">It is called “commenting”.</p>
<p dir="auto">In XML, this is how it goes: <code>&lt;!--Your comment--&gt;</code></p>
<p dir="auto">Not sure where you picked up the idea that a <code>/</code> is also necessary.  But, as <code>/</code> is just a character, it should not cause a problem in that location.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78051</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78051</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 01 Jul 2022 11:30:42 GMT</pubDate></item></channel></rss>