Deserialize XML to Entity with nested nodes using JMS Serializer
问题 I want to deserialize an XML file into an Entity using JMS Serializer. It works pretty well for direct properties. But when it comes to nested properties, I can't make it work without creating related entities. For example : <idt> <rcs>XXXXXXX</rcs> <name>NAME</name> <main> <adr_1> <type>YYYYY</type> <street>YYYYYYY</street> <zip>XXXXX</zip> </adr_1> </main> </idt> I need to create an Idt entity, and the deserialization will work fine for rcs and name , but for main I have to create a Main