Skip to Content.
Sympa Menu

xom-interest - [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: John Cowan <jcowan AT reutershealth.com>
  • To: tagsoup-friends AT yahoogroups.com
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] Re: [tagsoup-friends] about Multiple body tags
  • Date: Sat, 28 May 2005 14:14:51 -0400

Luca Passani scripsit:

> 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. Is there any way I can look-ahead and see
> if there are any body tags coming down the pipeline?

XSLT is your friend; so is the full use of the XOM model. You are trying
to strain the limits of a streaming API beyond what's reasonable.

--
John Cowan jcowan AT reutershealth.com www.ccil.org/~cowan
www.reutershealth.com
Any sufficiently-complicated C or Fortran program contains an ad-hoc,
informally-specified bug-ridden slow implementation of half of Common Lisp.
--Greenspun's Tenth Rule of Programming (rules 1-9 are unknown)




Archive powered by MHonArc 2.6.24.

Top of Page