📘

XML to TypeScript Interface Converter

Convert XML to TypeScript.

📘 How XML is mapped

  • Element Names: Used as interface names (PascalCased).
  • Child Elements: Mapped as properties within the parent interface.
  • Arrays: Multiple elements with the same name are mapped as `Type[]`.
  • Attributes: Included as optional properties prefixed with an underscore (e.g., `_id`).
  • Content: Elements with only text content are mapped to `string`, `number`, or `boolean`.