And here is the output...
ext/tidy/examples/dumpit5.php output

 + [EMPTY] (Root Node)
    + HTML (Start Node)
       + HEAD (Start Node)
          + TITLE (Start Node)
             + [EMPTY] (Text Node)
                 |
                 +---- Value: 'Example basic HTML document'
       + BODY (Start Node)
       |
       +---- Attributes
                  +-- bgcolor
                   |     +-- Value: #FFFFFF
          + B (Start Node)
             + [EMPTY] (Text Node)
                 |
                 +---- Value: 'Hello, World!'