This discussion is archived
0 Replies Latest reply: Feb 21, 2013 12:42 PM by 572609 RSS

Generate XML using DOM ( DocumentObjectBuilder )

572609 Newbie
Currently Being Moderated
Have a task to generate XMl from POJO objects

XML to be generated is complex

<element1>
     <ElementChild>
          <ChildElement1>
               <ChildElement>
               </ChildElement>
          </ChildElement1>
          <ChildElement2>
               <ChildElement>
               </ChildElement>
          </ChildElement2>
          <ChildElement3>
               <ChildElement>
               </ChildElement>
          </ChildElement3>
          <ChildElement4>
               <ChildElement>
               </ChildElement>
          </ChildElement4>
     </ElementChild>
</element1>

not able to do because the complex queries and requirement to populate

The same has been done with the help of appending nodes to document and appending childs but it has to be automated with the help of writing loops

any help appreciated

Thanks and Regards!!!
Ninjajay9982

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points