xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Problem parsing HTML file into Document
- From: Tatu Saloranta <cowtowncoder AT yahoo.com>
- To: Elliotte Harold <elharo AT metalab.unc.edu>, xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Problem parsing HTML file into Document
- Date: Sun, 11 Dec 2005 09:42:15 -0800 (PST)
--- Elliotte Harold <elharo AT metalab.unc.edu> wrote:
> Nick Day wrote:
> > Hi,
> >
> > I've been having a bit of trouble parsing a HTML
> file (attached) into a
> > document and keep getting the error below. Do I
> need to preprocess the
> > file into a different encoding before attempting
> the creation of the
> > Document object or am I way off?
>
> Your document isn't well-formed. Based on the error
> message, fixing the
> problem may be as simple as adding an encoding
> declaration. Then again,
> maybe not.
I'd guess passing in encoding specification for
ISO-8859-1 (aka ISO-Latin1) might solve the problem
(or at least allow parsing). XML parsers have to
assume UTF-8 if no other information is available, but
chances are the source doc is in some 1-byte encoding,
for which ISO-Latin1 is a reasonable gues.
-+ Tatu +-
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
[XOM-interest] Problem parsing HTML file into Document,
Nick Day, 12/10/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Wolfgang Hoschek, 12/10/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Nick Day, 12/11/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
John.Cowan, 12/11/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Wolfgang Hoschek, 12/12/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Elliotte Rusty Harold, 12/15/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Wolfgang Hoschek, 12/15/2005
- Re: [XOM-interest] Problem parsing HTML file into Document, Elliotte Harold, 12/19/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Wolfgang Hoschek, 12/15/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Elliotte Rusty Harold, 12/15/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Wolfgang Hoschek, 12/12/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
John.Cowan, 12/11/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Nick Day, 12/11/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Elliotte Harold, 12/11/2005
- Re: [XOM-interest] Problem parsing HTML file into Document, Tatu Saloranta, 12/11/2005
-
Re: [XOM-interest] Problem parsing HTML file into Document,
Wolfgang Hoschek, 12/10/2005
Archive powered by MHonArc 2.6.24.