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.

