How to remove a node based on contents of a subnode and then convert to CSV with headers intact
- by Morris Cox
I'm downloading a 10MB zipped XML file with wget, unzipping it to 40MB, trying to weed out test and expired entries (if the text of a certain node is "This is a test opportunity. Please DO NOT apply!" or if is in the past), and then convert to CSV.
However, I get this error:
PHP Notice: Array to string conversion in…