retrieve text between tag

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

Received on Monday, 31 May 2010 19:48:29 UTC