Greetings fellow programmers!I am having a major problem while unmarshalling xml to an object. I need to a create a reference to an object. How can I accomplish it? I've tried to use XSL transformation but due to cycle occurence this wasnt a right approach. I am 100% sure there's an easy way out.. Here's my XML:\[code\]<report> <subject> <subjectId>1</subjectId> <name>John</name> <surname>Doe</surname> </subject> <subject> <subjectId>2</subjectId> <name>Frank</name> <surname>Timothy</surname> </subject> <individual> <individualId>10</individualId> <name>Isaac</name> <surname>Newton</surname> <co-worker> <subject> <subjectId>1</subjectId> <inXml>true</inXml> </subject> <subject> <subjectId>2</subjectId> <inXml>true</inXml> </subject> </co-worker> </individual> <owner> <subject> <subjectId>2</subjectId> <inXml>true</inXml> </subject> <share>100</share> </owner></report>\[/code\]I need to create reference of "subject" or "individual" with inXml=true. This flag tells me wether we have got entity with that ID in the XML.Thank you very much for your help