in reply to Re: Text to XML
in thread Text to XML
Thanks a lot for ur reply
Here below is the input file:
<nl>number list 1 number list 2 <ul>unnumbered list1 unnumbered list 2 <pl>plain list 1 plain list 2 <nl>numbered list 1 numbered list 2</nl> </pl> </ul> </nl>
The output should be like:
<list type="numbered"> <list-item>numbered list 1</listitem> <list-item>numbered list 1</listitem> <listitem> <list type="unnumbered"> <listitem>unnumbered list1</listitem> <listitem>unnumbered list 2</listitem> <listitem> <list type="plain"> <listitem>plain list 1</listitem> <listitem>plain list 2</listitem> <listitem> <list type="numbered"> <list-item>numbered list 1</listitem> <list-item>numbered list 1</listitem> </list> </listitem> </list> </listitem> </list> </listitem> </list>
The above output is what i need. I have given u just a small part of my text file. since covering other parts are more similar to this part, please give me suggestions to do the conversion
for this kind of strucutures what should i do?
--Murugesan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Text to XML
by mirod (Canon) on Apr 12, 2004 at 16:20 UTC |