retrieve text between tag

[email protected] Sun, 30 May 2010 22:59:36 +0200
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
Hi all,
i have a program that attempt to retrieve the attribute of some tag:

void parse(TidyNode tnode) {

TidyNode child;

for (child = tidyGetChild(tnode); child; child = tidyGetNext(child)) {

TidyAttr href;

 if (tidyNodeIsMETA(child)) {

href = tidyAttrGetCONTENT(child);

printf("href = %s\n", (char*)tidyAttrValue(href));

gtk_text_buffer_set_text(buffer, (gchar *) tidyAttrValue(href), -1);

}

 parse(child);

}

}
My question is: it's possible to retrieve the text between tag ? example the
title text ?
<title>prova title</title>
I try with:

if (tidyNodeIsTITLE(child)) {

href = tidyAttrGetTITLE(child);


but with no result.....
Any suggestion will be appreciated...thanks all