§ VALIDATION · RED

INVALID_XML

The uploaded or generated SVG is not valid XML and cannot be parsed safely.

Import / format safetyDeterministic rule
← Back to validation rules

What it means

The uploaded or generated SVG is not valid XML and cannot be parsed safely.

Why it matters

If the document cannot be parsed deterministically, no later embroidery validation can be trusted.

Common triggers

  • broken upload or copy/paste into SVG
  • malformed generated markup
  • truncated file writes

Typical fixes

  • repair the SVG structure
  • re-export from the source tool
  • regenerate the document

Notes

  • Current implementation alias: invalid_xml in worker/validator.py.
  • This is a hard stop and should always block export.

Plan references

  • plan/05-validation.md
  • worker/validator.py