How do I access just the titles (ie 'Title 1', 'Title 2')? Every method I tried also includes the content.

I tried using: not('[li]") & parent()

This is an example list structure:

Code:
<ul id="mylist">
  <li> Title 1
    <ul>
      <li>Content 1</li>
    </ul>
  </li>
  <li>Title 2
    <ul>
      <li>Content 2</li>
    </ul>
  </li>
  <li>Title 3
    <ul>
      <li>Content 3</li>
    </ul>
  </li>
</ul>