Hello!
I'm pretty new here, but I often find myself trying for hours to do what most of you would consider the simplest things (I am pretty new to PHP as well).
Recently I have thought about creating a blog host (with wordpress, possibly) that my friends and I can use. Most of them already have Xangas (http://www.xanga.com) and would like to transfer their literally hundreds of Xanga entries to the new blog.
Xanga allows you to download archives of all your entries in HTML (why couldn't they just put it into XML?). I have attached an example file.
If you read the example file's HTML, it is dirty, but fairly consistent for all 15 or so entries. I just want to take the data from that file (the date, the time, the entry, each comment, the commentor, and the comment date/time) and shove it into a database. But I cannot figure out the best way to go about loading each piece of the info into a variable (using a bunch of loops inside loops).
I have thought about regexs, explode, and just finding and replacing in a program like FrontPage (!). But all those ways seem quick and dirty. Can anybody recommend a solution? Has something like this already been done?
Oh yeah, if you need a blog (which I'm sure you already have one if you do, haha), I can host you if you can help (or try to help) me with this.
Thanks!