End tags in TidyLib

I have a simple question, but it's puzzling me: I have
used LibTidy to parse some HTML files, and then I
recurse through them, exploring every node in the
tree.  I can never find any nodes of type
TidyNode_End.  I do this:

int nodeType = tidyNodeGetType(node)

and nodeType is never equal to TidyNode_End.  Can
someone explain what's happening with this?  If
TidyNode_End is never used, why is it there?

It does make sense: there should never be an "end"
node, because when you have a node like a P, then all
the content is children of that P node, and therefore
the "end" of this P node should never be encountered. 
In other words, all nodes should be either starts, or
text.

Thanks for any thoughts on this


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Received on Thursday, 9 June 2005 12:14:23 UTC