Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a tool to automatically replace a bunch of GUIDs with dynamically-generated ones?
    primarykey
    data
    text
    <p>I'm not a developer.</p> <p>I need to hack an XML file to duplicate hundreds of resources that are each assigned a GUID. Is there a way to parse the entire file, replacing each GUID found in a tag with a dynamically generated one?</p> <p>Basically - every UniqueID tag (but not the ContentUniqueID tags) needs a new GUID.</p> <pre><code>&lt;root xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'&gt; &lt;Name&gt;[redacted]&lt;/Name&gt; &lt;UniqueId&gt;7a136c33-3ea8-4f99-8f99-bbe411972203&lt;/UniqueId&gt; &lt;Enabled&gt;true&lt;/Enabled&gt; &lt;Behavior&gt;EmptyOnly&lt;/Behavior&gt; &lt;Subscriptions /&gt; &lt;ScheduledFormatTemplates&gt; &lt;ScheduledFormatTemplate&gt; &lt;Name&gt;[redacted]&lt;/Name&gt; &lt;UniqueId&gt;1cfaba3e-bfd5-4d2f-a1df-14020ad2f7da&lt;/UniqueId&gt; &lt;ContentUniqueId&gt;67c58741-fe1b-4c15-8dc0-8b4c01f6f18f&lt;/ContentUniqueId&gt; &lt;ScheduledContents&gt; &lt;ScheduledContent xsi:type="SFTR"&gt; &lt;Name&gt;[redacted]&lt;/Name&gt; &lt;UniqueId&gt;b4a60646-b62b-43e7-b2a2-7d37875ab33f&lt;/UniqueId&gt; &lt;ContentUniqueId&gt;ba634a97-9faf-4bfa-a9b4-d8a2475b82e6&lt;/ContentUniqueId&gt; &lt;ScheduledContents&gt; &lt;ScheduledContent&gt; &lt;Name&gt;[redacted]&lt;/Name&gt; &lt;UniqueId&gt;6f8e6e6c-1f94-4caa-8730-6859448138eb&lt;/UniqueId&gt; &lt;ContentUniqueId&gt;938b0a24-4043-4a16-bc2d-25dbdb21a659&lt;/ContentUniqueId&gt; &lt;/ScheduledContent&gt; &lt;/ScheduledContents&gt; &lt;/ScheduledContent&gt; &lt;/ScheduledContents&gt; &lt;/ScheduledFormatTemplate&gt; &lt;/ScheduledFormatTemplates&gt; &lt;/root&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload