Let's say I have a structure like this:

```
<folder name="folder1">
     <folder name="folder2">
          <bookmark href="link.html">
     </folder>
</folder>

```

If I point to bookmark, what would be the command to just extract all of the folder lines?
For example,

```
bookmarks = soup.findAll('bookmark')

```

then `beautifulsoupcommand(bookmarks[0])` would return:

```
[<folder name="folder1">,<folder name="folder2">]

```

I'd also want to know when the ending tags hit too. Any ideas?

Thanks in advance!