W3C home > Mailing lists > Public > www-rdf-interest@w3.org > May 2005

Re: Finding syntactically-related children and parent Elements in XHTML.

From: Danny Ayers <danny.ayers@gmail.com>
Date: Mon, 2 May 2005 18:50:19 +0200
Message-ID: <1f2ed5cd05050209505aab6039@mail.gmail.com>
To: Costas Mantratzis <cmantrat@ics.mq.edu.au>
Cc: semantic-web@w3.org, www-rdf-interest@w3.org

On 5/2/05, Costas Mantratzis <cmantrat@ics.mq.edu.au> wrote:
> 
> Hello everyone.
> 
> Just picking your brains on something you might have come across while
> playing with JDOM, JTidy or similar components...
> 
> I'm trying to get my algorithm to understand which elements are
> syntactically directly related to their parents in an XHTML structure.

If I remember correctly, John Cowan's Tag Soup parser [1] does
something like this to fix up ill-formed (X)HTML. You may also find
the Relax NG approach to schemas useful, Relaxer [2] and Trang [3]
being fun tools in that space.

Cheers,
Danny. 

[1] http://mercury.ccil.org/~cowan/XML/tagsoup/
[2] http://www.xml.com/pub/a/2003/02/19/relaxer.html
[3] http://www.thaiopensource.com/relaxng/trang.html

-- 

http://dannyayers.com
Received on Monday, 2 May 2005 16:50:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:13 GMT