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.
Ctrl/⌘ + Enter to run
Starter code only — review namespaces, polymorphism and nullability.
XML
Code
How to use
- Paste a representative sample XML.
- Pick a language and optional root type name.
- 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.