W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2010

retrieve text between tag

From: <mioprofilo@gmail.com>
Date: Sun, 30 May 2010 22:59:36 +0200
Message-ID: <AANLkTiknnm_vpFKzcQCLAUCyANLV6EoS9hboFLIkGGX1@mail.gmail.com>
To: html-tidy@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:14:00 GMT