If I'm understanding you correctly, what you need might be something like Castor or XmlBeans. Both can create Java objects from XML and vice versa based on a schema.
-- Muzaffer > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:dom4j-user- > [EMAIL PROTECTED] On Behalf Of Joey > Sent: Tuesday, February 05, 2008 2:46 AM > To: dom4j-user@lists.sourceforge.net > Subject: [dom4j-user] How to retrace object from XML. > > Hi all. > > I have a question, I am using dom4j to write/read XML. I need to > retrace some objects from XML. I tried to find solution in dom4j > manual, but seems have to hard code class name and propery name, and > write those java code for every object. like this > ----------- > String name = country.valueOf("@name"); > ----------- > > so I think there should have some easy and common way to retrace > object from XML. but didn't find it now. > anybody can give some information to me about how to make it? thanks. > > Joey. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > dom4j-user mailing list > dom4j-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dom4j-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user