hisham
IS-IT--Management
- Nov 6, 2000
- 194
i have a text file contains ie:
# my_first_title #
my first subtext .
my second subtext .
my third subtext .
# my_second_title #
my A_first subtext .
my A_second subtext .
my A_therd subtext .
etc...
Question: How to convert it to XML using php? to :
<title> my_first_title </title>
<text>my first subtext .</text>
<text>my second subtext .</text>
<text>my third subtext .</text>
<title> my_second_title </title>
<text>my A_first subtext .</text>
<text>my A_second subtext .</text>
<text>my A_therd subtext .</text>
etc...
then I can manage the data and store it in a DB.
any help or code?
Thanks in advance.
# my_first_title #
my first subtext .
my second subtext .
my third subtext .
# my_second_title #
my A_first subtext .
my A_second subtext .
my A_therd subtext .
etc...
Question: How to convert it to XML using php? to :
<title> my_first_title </title>
<text>my first subtext .</text>
<text>my second subtext .</text>
<text>my third subtext .</text>
<title> my_second_title </title>
<text>my A_first subtext .</text>
<text>my A_second subtext .</text>
<text>my A_therd subtext .</text>
etc...
then I can manage the data and store it in a DB.
any help or code?
Thanks in advance.