Search code examples
xmlsvgadobe-illustrator

Why does Illustrator mangle group/id names in generated SVG files?


i need your support for svg file to xml conversion example

enter image description here

THIS IMAGE IS SVG FILE created with group name with auto A/C

NOW xml CODE

<g id="With_auto_A_x2F_C">
        <text transform="matrix(0.9965 0 0 1 447.8486 12.79)" fill="#13110C" font-family="'Helvetica'" font-size="5.9999">With auto A/C</text>
    </g>
</g> 

why for group name g id is creating like "With_auto_A_x2F_C"> for special characters like "/" changed to x2F and " " characters changed to "_" why can anybody help me to solve this issue.

also can you provide me all special characters conversion for xml code.

Thanks, Yogesh.v


Solution

  • As it was mentioned if you save file in SVG format, object and layer names must conform to XML naming conventions. How illustrator converts this names you can see right away in Layer Panel, for this open Edit->Preferences->Units and set 'Identify Objects' to 'XML ID'.