Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] TagSoup, malformed comments and XOM

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Bart Schuller <schuller+xom-interest AT lunatech.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] TagSoup, malformed comments and XOM
  • Date: Tue, 27 Jun 2006 19:16:56 -0400

Bart Schuller scripsit:
> Hi,
>
> I have some nasty HTML to parse so I immediately tried out Tagsoup,
> which produced a workable XML file. But when I tried building a XOM tree
> in one step using the example from the nux page, I got an exception:
>
> Exception in thread "main" nu.xom.ParsingException: Comment data
> contains a double hyphen (--).

It's definitely a bug in TagSoup that my regression tests didn't catch,
because they don't test the treatment of comments (there is a command-line
way to output comments, though, the --lexical switch).

I'll try to issue a new release soon.

--
John Cowan cowan AT ccil.org http://ccil.org/~cowan
Half the lies they tell about me are true.
-- Tallulah Bankhead, American actress




Archive powered by MHonArc 2.6.24.

Top of Page