Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a text file that has a very simple structure like this:

Title: This is title of post 1

Body: Here is the body

Title: This is title of post 2

Body: Here is the body

I would like to convert this text file to a suitable xml format such that Wordpress can import all the posts automatically.

Is there any tool or method that may help me to do this?

share|improve this question
Hi Mert, this is a PHP question and in it's current form I am voting to close, have a look at SimpleXMLElement . – Wyck Nov 1 '12 at 16:45

closed as off topic by Wyck, toscho Nov 1 '12 at 18:06

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.