Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Re: [tagsoup-friends] about Multiple body tags

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Luca Passani <passani AT eunet.no>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Re: [tagsoup-friends] about Multiple body tags
  • Date: Sat, 28 May 2005 14:27:29 -0400

Luca Passani wrote:

I am using XOM's NodeFactory to parse raw HTML. My problem is that I am using the body closing tag
as the cue point to start collecting statistics about a page. As you can imagine, the existence of multiple body tags
totally screws up my strategy.

Why not use the closing </html> tag instead?

Is there any way I can look-ahead and see if there are any body tags coming down the pipeline?


No.


If I could, I would know if it's time to start the party or not.

Alternatively, is there an event that signals that the XML document is over while still inside nodefactory?


finishMakingDocument

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page