0 Replies Latest reply: Feb 21, 2013 2:42 PM by Ninjajay9982 RSS

    Generate XML using DOM ( DocumentObjectBuilder )

    Ninjajay9982
      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