Can I generate nested models from XML?
Yes. Nested XML elements and repeated nodes are converted into structured models for the selected output language.
Convert XML to C# models with nested structure support for fast code generation.
<user>
<id>101</id>
<name>Ada Lovelace</name>
<active>true</active>
<roles>
<role>admin</role>
<role>editor</role>
</roles>
<profile>
<email>ada@example.com</email>
<score>9.8</score>
</profile>
</user>
public class UserModel
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public bool Active { get; set; }
public List<string> Roles { get; set; } = new();
}
Yes. Nested XML elements and repeated nodes are converted into structured models for the selected output language.
Yes. Use the Force Optional toggle in the app toolbar when you need optional fields in the generated output.
Yes. Generated classes are suitable as DTO bases and can be adapted for your serializer attributes and conventions.