How to create Java objects from XML tags which are referring each other?
问题 I have an XML which has tags corresponding to three types of Java objects which would be created from the XML. The objects are of the form: A - static Map<String, A> - String name - String aInfo1 - String aInfo2 B - static Map<String, B> - String name - String bInfo1 - String bInfo2 C - A aObject - B bObject Now, in my XML, I define a list of tags for A objects and B objects and then I define tags for C objects which refer to A and B objects using there name field. I have two requirements: