Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Parsing an XML document from a URL

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Peter Murray-Rust <pm286 AT cam.ac.uk>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Parsing an XML document from a URL
  • Date: Sat, 8 May 2010 12:42:37 +0100

On Sat, May 8, 2010 at 11:45 AM, Dave Pawson <dave.pawson AT gmail.com> wrote:
>
> That's why they don't like it.
> How you fix it?
>
> Your choice.
> 1. Get rid of the DTD reference in your xml instance.

I read a lot of HTML files from a lot of sites and DTD references can
cause a lot of trouble. So routinely when I process HTML (often not
XHTML, of course) I strip the DTD reference automatically. This has to
be done by something other than XOM even if the document is well
formed. Then I pass it to Tidy or TagSoup and thence to XOM.


--
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069




Archive powered by MHonArc 2.6.24.

Top of Page