DEV Community

Discussion on: Need help with editing a massive file

Collapse
 
whoisryosuke profile image
Ryosuke

@hoahchris

Basically this.

I had to do this a lot with XML exports from Wordpress. Here's a script I wrote on Github that sorts through XML using PHP to get you started. It converts XML to TXT files, but you can see how I parse and loop through the XML nodes.

Collapse
 
rhymes profile image
rhymes

Why don't use you an XPath based to extract the nodes?