title: Can dom parsers read inside HTML comments, or is Regex the only way
body: <p>I am creating very simple CMS for my organisation.</p>
  
  <p>My strategy is to embed editable content between tags called &lt; editable >. However to hide these from the browser I am commenting them out. So an example of an editable region will look like this.</p>
  
  <pre><code>&lt;!-- &lt;editable name="news_item&gt; Today's news is ... &lt;/editable&gt; --&gt;
  </code></pre>
  
  <p>With the content "Today's news is ... " being picked up by the CMS and made editable in the online HTML editor.</p>
  
  <p>I would like to be able to "grab" the name attribute's value as well as the content contained within the  tags.</p>
  
  <p>Is there a simple way to do this with XPath, XQuey type things, or is regex the best way to go ( ]esp. given that the regex will not need too much fault tolerance, since I know exactly what the xml will be, because I will be writing the code that generates it).</p>