Search the Community
Showing results for tags 'parsing'.
-
Hi guys, I need help parsing a document (dialogue from the Die Hard!) Right now, it is in this XML format: <s id="631"> <time id="T583S" value="00:58:08,840" /> <w id="631.1">Do</w> <w id="631.2">you</w> <w id="631.3">really</w> <w id="631.4">think</w> <w id="631.5">you</w> <w id="631.6">have</w> <w id="631.7">a</w> <w id="631.8">chance</w> <w id="631.9">against</w> <w id="631.10">us</w> <w id="631.11">,</w> <w id="631.12">Mr.</w> <w id="631.13">Cowboy</w> <w id="631.14">?</w> <time id="T583E" value="00:58:11,960" /> </s> <s id="632"> <time id="T584S" value="00:58:14,960" /> <w id="632.1">Yippee-</w> <w id="632.2">ki-</w> <w id="632.3">yay</w> <w id="632.4">,</w> <w id="632.5">motherfucker</w> <w id="632.6">.</w> <time id="T584E" value="00:58:17,000" /> </s> What I want, is for it to be parsed so that it turns each "id" block into only the text it contains, putting one "id" block onto one line each. For example, this text would become the exactly the following: Do you really think you have a chance against us Mr. Cowboy? Yippee-ki-yay, motherfucker. How do I do this?
-
Any have any idea why the status page is displaying the php code and not the parsed output? To get a better understanding of what I mean, check out this http://imgur.com/wjeKMwT