<!-- ========== VALIDATION RULES ========== --> <ValidationRules> <Rule id="uniqueCheck" type="uniqueness" scope="global"/> <Rule id="formatCheck" type="regex" pattern="^[A-Za-z0-9_-]+$"/> <Rule id="lengthCheck" min="6" max="64"/> <Rule id="reservedWordsCheck" disallow="xml,key,generator,root"/> </ValidationRules>
<?xml version="1.0" encoding="UTF-8"?> <!-- XML Key Generator Tool v4.0 Purpose: Generate, validate, and export unique XML keys/IDs for elements, attributes, or datasets. Features: UUID, sequential, custom pattern, namespace prefixes, collision check, batch mode. --> <KeyGeneratorTool version="4.0" xmlns="http://xmlkeytool.dev/v4/schema"> <!-- ========== CONFIGURATION ========== --> <Configuration> <DefaultKeyType>uuid</DefaultKeyType> <!-- uuid | sequential | custom --> <Prefix>key_</Prefix> <NamespacePrefix>ns</NamespacePrefix> <CaseSensitive>false</CaseSensitive> <MaxBatchSize>1000</MaxBatchSize> </Configuration>
<!-- ========== BATCH GENERATION REQUEST ========== --> <BatchRequest id="batch_001" total="10" type="custom"> <Keys> <!-- Auto-generated 10 keys using 'custom' method --> <Key>PROJ20260416-0001</Key> <Key>PROJ20260416-0002</Key> <Key>PROJ20260416-0003</Key> <Key>PROJ20260416-0004</Key> <Key>PROJ20260416-0005</Key> <Key>PROJ20260416-0006</Key> <Key>PROJ20260416-0007</Key> <Key>PROJ20260416-0008</Key> <Key>PROJ20260416-0009</Key> <Key>PROJ20260416-0010</Key> </Keys> </BatchRequest> xml key generator tool ver 4.0
<!-- ========== COLLISION REPORT (if any) ========== --> <CollisionReport> <Status>clean</Status> <TotalGenerated>1523</TotalGenerated> <Unique>1523</Unique> <Collisions>0</Collisions> </CollisionReport>
<!-- ========== EXPORT FORMATS ========== --> <ExportFormats> <Format type="XML" wrapped="true"> <RootElement><KeyList> ... </KeyList></RootElement> </Format> <Format type="JSON" wrapped="true"> <Sample>"keys": ["key1","key2"]</Sample> </Format> <Format type="CSV" delimiter=","> <Sample>key_001,key_002,key_003</Sample> </Format> </ExportFormats> Format type="JSON" wrapped="true">
<!-- ========== SAMPLE GENERATED OUTPUT ========== --> <GeneratedOutput timestamp="2026-04-16T10:30:00Z" toolVersion="4.0"> <Key id="1" type="uuid"><id>f47ac10b-58cc-4372-a567-0e02b2c3d479</id></Key> <Key id="2" type="sequential"><recordId>key_00042</recordId></Key> <Key id="3" type="custom"><orderId>ORD-2026-04-16-042</orderId></Key> <Key id="4" type="hash" source="user@example.com"><hashKey>b6c8a12e4f9d</hashKey></Key> </GeneratedOutput>
<!-- ========== NAMESPACE KEY EXAMPLE ========== --> <NamespaceKeys xmlns:doc="http://doc.namespace.org" xmlns:meta="http://meta.keys.org"> <doc:key>doc_550e8400</doc:key> <meta:key>meta_8a3f2d1b</meta:key> </NamespaceKeys> Format type="CSV" delimiter="
<!-- ========== GENERATOR ENGINE ========== --> <Generator id="mainEngine"> <!-- UUID Key Generator (RFC 4122) --> <Method name="uuid" format="standard"> <Example>550e8400-e29b-41d4-a716-446655440000</Example> <Output><uuid_key>550e8400-e29b-41d4-a716-446655440000</uuid_key></Output> </Method> <!-- Sequential Key Generator --> <Method name="sequential" start="1" step="1" digits="5" padChar="0"> <Example>key_00001</Example> <Output><seq_key>key_00042</seq_key></Output> </Method> <!-- Custom Pattern Key Generator --> <Method name="custom" pattern="[PREFIX][YYYY][MM][DD]-[SEQ:4]"> <Placeholders> <Placeholder token="PREFIX" value="PROJ"/> <Placeholder token="YYYY" value="2026"/> <Placeholder token="MM" value="04"/> <Placeholder token="DD" value="16"/> <Placeholder token="SEQ" type="counter" digits="4"/> </Placeholders> <Example>PROJ20260416-0042</Example> </Method> <!-- Hash-based Key (SHA-256 truncated) --> <Method name="hash" source="inputText" length="12" algorithm="SHA-256"> <Example>a3f5c2e9d1b4</Example> </Method> </Generator>