Hi , I want to create one XML from the MAP[contains DATA]. Datas are stored in Map inside MAP inside MAP[ Nested MAPS]. Is it possible to write a generic method which just parses thru MAP and creates the XML. EX: INPUT MAP RootMap -- 2 elements 1. Child1Map 2. Child2Map Child1Map -- has two string elements [for creating Node] Child2Map -- has two string elements [For creating Node]
OUTPUT XML <Root> <child1>blah..<child1> <child11>blah..<child11> <child12>blah..<child12> <child2>blah..<child2> <child21>blah..<child21> <child22>blah..<child22> </Root>
Please anyone give me idea or code How to do this..
Greetings Amar, Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a real first and last name to conform with the JavaRanch Naming Policy. You can change it here: Change your display name.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher