๐ง XML GUID Formatter
Formats both clean hex strings and messy hyphenated ones to standard GUID format (preserves original case)
๐ฏ Select Additional Elements to Process (Default: Unchecked)
๐ Processing large file...
โน๏ธ How to use:
- Paste your XML content in the input area above
- Check any additional elements you want to process (optional)
- Click "Format GUIDs" to process the XML
- Copy the formatted result using "Copy Output" button
- Use "Clear All" to reset both input and output
๐ง Processing Logic:
- Step 1: Detects hex strings (with or without hyphens)
- Step 2: Removes ALL existing hyphens from detected strings
- Step 3: Validates if it's exactly 32 hex characters
- Step 4: Formats with proper GUID structure (8-4-4-4-12)
- Preserves: Original case (uppercase/lowercase)
- Handles: Both clean hex strings and messy hyphenated ones
๐ Processed Elements:
- Always Processed:
- <level rule="" id=""> - Formats both rule and id attributes
- <p id=""> - Formats id attribute
- <removed_level id=""> - Formats id attribute
- Optional (Check to Enable):
- <document id=""> - Formats id attribute
- <issuingbody id=""> - Formats id attribute
- <countryofissue id=""> - Formats id attribute
- <UpdateGUID> - Formats content between tags
Before (clean hex string):
7A172069F3404E82BB72B571EB49C06A
After (formatted):
7A172069-F340-4E82-BB72-B571EB49C06A
Before (with hyphens):
B2-EBF-FC01-DD54-4C78-D81F5B-3824-3A3-51
After (cleaned & formatted):
B2EBFFC0-1DD5-44C7-8D81-F5B38243A351
Before (messy pattern):
F3-929B3FB-EA-843-E4-90359-5-FB8-8EF1C-54
After (cleaned & formatted):
F3929B3F-BEA8-43E4-9035-95FB88EF1C54