Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an xml file output from WordPress.

I have BBEdit as my main search tool.

I am on a Mac running 10.7.4

I am trying to find a muli-line block of text that starts with <item> and end with </item>

In the block, there must be <wp:status>publish</wp:status> and <wp:post_type>post</wp:post_type>

Does anyone have any idea how I would find that using GREP or Automator?

(Sorry I don't have enough rep to make better tags)

share|improve this question
Posting questions on multiple sites isn't generally allowed. Can you delete either this question or the one at Super User? – user495470 Aug 24 '12 at 20:12
It won't let me delete it – Nohl Aug 24 '12 at 20:21
I ended up using Filemaker pro and two related sql tables to create a new xml file. very messy. it took weeks to figure out. – Nohl Sep 8 '12 at 1:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.