How to convert flat xml data to hierarchical data xml
问题 I have to convert a flat xml to hierarchical xml. I have no idea for this task. Below is input for conversion. Input:- <body> <p class="title">Article Title</p> <p class="Authors">abc, pqr and xyz</p> <p class="intro">here is introdution text......</p> <p class="head1">1: Heading level 1</p> <p>some text here</p> <p>some text here</p> <p class="head2">1.1: Heading level 2</p> <p>some text here</p> <p>some text here</p> <p class="head3">1.1.1: Heading level 3</p> <p>some text here</p> <p>some