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: "Steve Loughran" <steve.loughran AT gmail.com>
  • To: "John Cowan" <cowan AT ccil.org>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] TagSoup, malformed comments and XOM
  • Date: Thu, 29 Jun 2006 10:05:00 +0100

On 28/06/06, John Cowan <cowan AT ccil.org> wrote:
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.


Arguably: its a design-defect in XML that propagates down the food chain
http://issues.us.apache.org/bugzilla/show_bug.cgi?id=17262




Archive powered by MHonArc 2.6.24.

Top of Page