XML Code Generator

Infer nested models from sample XML for TypeScript, JavaScript, Python, Go, Java, Kotlin, C#, Swift, Rust, PHP, Ruby, Dart and Scala.

All processing on this page runs locally in your browser unless noted otherwise.

Starter code only — review namespaces, polymorphism and nullability.

XML

Code

How to use

  1. Paste a representative sample XML.
  2. Pick a language and optional root type name.
  3. Generate and adapt annotations for your stack.

FAQ

Does it read XSD?

V3 infers from sample XML. Schema-driven codegen can come later.

Is codegen local?

Yes.

Related tools