<?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[Reorder XML with Python script]]></title><description><![CDATA[<p dir="auto">Dear all</p>
<p dir="auto">Sometimes I have to deal with XML tags which are in the wrong order:</p>
<p dir="auto">&lt;YearHIVDiagOutsideUK&gt;1996&lt;/YearHIVDiagOutsideUK&gt;<br />
&lt;HIVDiagnosisDateInUK&gt;2020-10-07&lt;/HIVDiagnosisDateInUK&gt;</p>
<p dir="auto">which I’d like to convert to:</p>
<p dir="auto">&lt;HIVDiagnosisDateInUK&gt;2020-10-07&lt;/HIVDiagnosisDateInUK&gt;&lt;YearHIVDiagOutsideUK&gt;1996&lt;/YearHIVDiagOutsideUK&gt;</p>
<p dir="auto">Thanks for reading.<br />
Mark</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21066/reorder-xml-with-python-script</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 10:57:13 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21066.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Apr 2021 09:20:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reorder XML with Python script on Fri, 23 Apr 2021 15:15:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21822">@Mark-McCall</a></p>
<p dir="auto">may I ask you what exactly you are trying to solve?<br />
Is it about being sure to always have a standardized xml file?<br />
If so, have you considered using xslt instead?<br />
Or do you need a generic way to reorder the tags based on your current requirements?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65271</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65271</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 23 Apr 2021 15:15:08 GMT</pubDate></item></channel></rss>