title: Ruby: parsing message from confluence xml macro
body: <p>I am trying to parse the message that says "this is a test" </p>
  
  <pre><code>&lt;ac:structured-macro ac:name="warning"&gt;&lt;ac:rich-text-body&gt;&lt;strong&gt;High&lt;/strong&gt; This is a test!&lt;/ac:rich-text-body&gt;&lt;/ac:structured-macro&gt;
  </code></pre>
  
  <p>I am using nokogiri in ruby and was able to parse this much and nothing else. To get this far, my code looks something like this:</p>
  
  <pre><code>xml = Nokogiri::XML(response)
  body = xml.at("body").text
  alert_body = alert[3]
  </code></pre>
  
  <p>I have wasted too many hours looking in the confluence rest api documentation and google for just general xml parsing.</p>