parsing a text file

Hi,

I'm trying to parse a text file and create another text / XML file based on the structure of the input.

I would really appreciate any help.

Bellow is a part of my input and i'm intrested in parsing the input and find the Element Name and the links inside that element. Then based on the link name I must be alble to find the appropriate link info and feed into the output text/xml file.

Token Element_28

IN IStarResourceElement

WITH

attribute, links

: Link_68

attribute, links

: Links_66

attribute, name

: "R Dep."

END

Token Link_68

IN IStarDependencyLink

WITH

attribute, name

: " "

attribute, from

from : Element_28

attribute, to

to : Element_23

END

Thank you.

[826 byte] By [Farzad.s] at [2007-9-30 19:50:04]
# 1
farzad can you please provide more details about your requirement?
gadreash at 2007-7-7 0:37:35 > top of Java-index,Administration Tools,Sun Connection...
# 2
Stylus Studion converts Text to XML. http://www.stylusstudio.com/text_file_to_xml.html
dvohra09 at 2007-7-7 0:37:35 > top of Java-index,Administration Tools,Sun Connection...