469,950 Members | 1,527 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Help Needed - Read Text File and Convert to XML format

4
Hello people,
I am new to php and have question on how to read text file and convert it to XML with php. [what i mean here is i want to create a php that can open and read text file and saved as XML format].

Can it be done if the text file contains text, image and also tables?

please help and if anyone has the sources that could help solve my problem, please direct me to the source. Thank you very much

-abtet-
Mar 26 '07 #1
1 2429
Hello people,
I am new to php and have question on how to read text file and convert it to XML with php. [what i mean here is i want to create a php that can open and read text file and saved as XML format].

Can it be done if the text file contains text, image and also tables?

please help and if anyone has the sources that could help solve my problem, please direct me to the source. Thank you very much

-abtet-
for open and read the text file you'll need to user fopen and fread.
you can find a parser for xml at www.w3schools.com
also you can find many useful information on www.php.net

If you don t neead to make this job automaticlly you can use Open Office, save you file there and then unzip the file.odt the content will be in an xml.
Mar 27 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by Nicholas Pappas | last post: by
1 post views Thread by Proteus | last post: by
1 post views Thread by jeremy | last post: by
2 posts views Thread by Jayjay | last post: by
2 posts views Thread by kkb | last post: by
18 posts views Thread by Scott | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.