Hi monks!.

I have to convert the following input structured tagged elements in to html tree view structure elements.
The tree structure should look like xml (plus and minus) that is to view particular level elements.
Is any option in perl-modules to convert the tagged structured in to the html tree view structure format.
please suggest me for my sample inputs.

<h2>1.11.1&#160;Introduction</h2> <h2>1.11.2&#160;By Substitution</h2> <h3>1.11.2.1&#160;Halogen</h3> <h4>1.11.2.1.1&#160;alkyl halides</h4> <h5>1.11.2.1.1.(i)&#160;Friedel&#8211;Crafts alkylation</h5> <h5>1.11.2.1.1.(ii)&#160;organometallic</h5> <h4>1.11.2.1.2&#160;vinyl halides</h4> <h5>1.11.2.1.2.(i)&#160;Alkyl nucleophiles</h5> <h5>1.11.2.1.2.(ii)&#160;Alkenyl nucleophiles</h5> <h5>1.11.2.1.2.(iii)&#160;Aryl nucleophiles</h5> <h5>1.11.2.1.2.(iv)&#160;vinyl halides</h5> <h3><br>1.11.2.2&#160;Oxygen</h3> <h4><br>1.11.2.2.1&#160;alkyl oxygen leaving groups</h4> <h5><br>1.11.2.2.1.(i)&#160;Crafts alkylation</h5> <h5><br>1.11.2.2.1.(ii)&#160;organometallic</h5>

Thanks in advance


In reply to HTML tree view Conversion for texts by perlsen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.