Hi Great Monks,
Im doing conversion of a plain text file into XML file. The DTD is much complicated.(Nesting is too much). For example the structure looks like this.
<extract> <line> <p> <extract> <show> <list> <listitem><p><extract></extract></p></listitem> </list> </show> </extract> </p></line> </extract>
In order to convert the text file we use short tags like <ex> for extract, <ln> for line and <ls> for list tag. The problem is the nesting, where any tag can come inside any tag.
We have listitems splitted with \n. Can we convert this kind of file by inside out(By converting the inner elements first and saving them in some data structure and then converting the outer elements). Is this a better idea?
Can i try Parse::RecDescent or XML::DOM.
Please give me the suggestions. How to approach this task.
Thanks in advance
--Murugesan--
In reply to Text to XML by murugu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |