Re: Using htmltidy to parse: getting the "body" of a node

* joe user [Wed, 01/10/2003 at 12:45 -0700]
> 
> Hello Tidy people,
> 
> I am trying to use Tidy to do its magic on (possibly
> broken) html files, for input to other layers of
> processing in C.  I need to get access to the body of
> stuff.
> 
> For example, in this block:
> 
> <p>This is some text.</p>
I do not know if it is easy to do with tidy. Could you use another tool
such as Openjade or soemthing else?

In DSSSL with (Open)Jade, you would write
(element p
  (literal (data (current-node))))
 
to obtain the stuff inside the element.

Jany

Received on Thursday, 2 October 2003 03:48:29 UTC