xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Parsing an XML document from a URL
- From: "PG-Dillingham, Iain" <Iain.Dillingham.1 AT city.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 11:04:30 +0100
Thanks for your prompt reply.
I appreciate that the issue here lies with the W3C rejecting requests and
noted the local DTD at Cafe con Leche. However, I wonder if you -- or another
member of this list -- could suggest a work-around? I don't wish to validate
the XML, merely parse and extract certain elements; ideally without storing
the XML locally. Using XOM, is this possible for XML where the DTD is not
accessible? Should I use SAX or DOM instead?
As I mentioned in my email I'm a Java beginner: XOM was highlighted as an
excellent XML API for people like me!
Thanks for your time,
Iain
________________________________________
From: Elliotte Rusty Harold [elharo AT ibiblio.org]
Sent: 08 May 2010 01:12
To: XOM API for Processing XML with Java
Subject: Re: [XOM-interest] Parsing an XML document from a URL
On Fri, May 7, 2010 at 4:53 PM, PG-Dillingham, Iain
<Iain.Dillingham.1 AT city.ac.uk> wrote:
> Hello all,
>
> Apologies if this question has been asked (and answered) before. I checked
> through the archives, but only covering the last year-or-so.
>
> I'm trying to parse an XML document from a URL, as explained in the
> tutorial (http://www.xom.nu/tutorial.xhtml#d0e417). Although this works
> perfectly with http://www.cafeconleche.org/, many other URLs result in an
> IOException (e.g. http://en.wikipedia.org/wiki/Main_Page). The exception
> suggests the problem lies with DTDs hosted on www.w3.org not responding
> (response code 503).
>
The W3C has begun rejecting requests for the XHTML DTDs that it
doesn't like. The Cafe con Leche pages point to local pages instead so
they don;t have this problem.
--
Elliotte Rusty Harold
elharo AT ibiblio.org
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
Re: [XOM-interest] Parsing an XML document from a URL,
Elliotte Rusty Harold, 05/07/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
PG-Dillingham, Iain, 05/08/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
Elliotte Rusty Harold, 05/08/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
Dave Pawson, 05/08/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
Elliotte Rusty Harold, 05/08/2010
- Re: [XOM-interest] Parsing an XML document from a URL, Dave Pawson, 05/08/2010
- Re: [XOM-interest] Parsing an XML document from a URL, Peter Murray-Rust, 05/08/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
Elliotte Rusty Harold, 05/08/2010
- Re: [XOM-interest] Parsing an XML document from a URL, PG-Dillingham, Iain, 05/08/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
Dave Pawson, 05/08/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
Elliotte Rusty Harold, 05/08/2010
-
Re: [XOM-interest] Parsing an XML document from a URL,
PG-Dillingham, Iain, 05/08/2010
Archive powered by MHonArc 2.6.24.