getting specific data from file
Posted: Fri Aug 22, 2003 8:59 am
Hello all,
my program goal is to get info from text files and store it in db (mysql)
my input (the text file) is build like an xml file with tags.
a lot of line which looks like that.
<tagName name="parameterName" value="value" status="status" bla bla>
I need to write a script that will go line by line and first identify that the line is relevant (looks like I wrote)
then I have to get only the parameterName the value and the status (for storing).
So once I read the line I need to isolate this three elements.
I know how to open the file and read from it but can get the infromation I want. which functions can help me?
I hope the Q is understood
Thanks
my program goal is to get info from text files and store it in db (mysql)
my input (the text file) is build like an xml file with tags.
a lot of line which looks like that.
<tagName name="parameterName" value="value" status="status" bla bla>
I need to write a script that will go line by line and first identify that the line is relevant (looks like I wrote)
then I have to get only the parameterName the value and the status (for storing).
So once I read the line I need to isolate this three elements.
I know how to open the file and read from it but can get the infromation I want. which functions can help me?
I hope the Q is understood
Thanks