xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: luca <passani AT eunet.no>
- To: Elliotte Harold <elharo AT metalab.unc.edu>
- Cc: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] dtd problems
- Date: Mon, 20 Sep 2004 11:30:36 +0200
Elliotte,
using this does not seem to fix the prolem either:
StreamingImgLister sil = new StreamingImgLister();
Builder builder = new Builder(false,sil);
I had not noticed this constructor in the JavaDocs until today.
If I do:
long before = System.currentTimeMillis();
System.out.println("before: "+before);
Document doc = builder.build(mark_up,"");
long after = System.currentTimeMillis();
System.out.println("after: "+after);
I see:
before: 1095672457818
<img src="pix/cinema.gif" />
<img src="pix/games.gif" />
<img src="pix/travel.gif" />
<img src="pix/lovelife.gif" />
<img src="pix/weather.gif" />
<img src="pix/music.gif" />
<img src="pix/sport.gif" />
<img src="pix/search.gif" />
<img src="pix/more.gif" />
after: 1095672471307
1095672457818 - 1095672471307 = 13 Seconds
am I misunderstanding the purpose of the false
parameter to the constructor?
Luca
luca wrote:
mmm. Unfortunately I don't control the XML document. This is always
about the same issue of using XOM to parse WML/XHTML-MP mark-up
and extract img references. There is not much use for a DTD for me.
There must be an easy way to tell XOM (or whatever lies beneath XOM)
to ignore DTDs.
Generally speaking the idea of making the well-functioning
of a software system dependent on a resource out of one's control
does not seem wise to me and I definitely want to avoid this situation
in my system.
Also, it's unlikely that it was a DNS glitch. The resource is available
on the net and I even rebooted my PC to make it absolutely sure.
thank you
Luca
-
[XOM-interest] dtd problems,
luca, 09/19/2004
-
Re: [XOM-interest] dtd problems,
Elliotte Harold, 09/19/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
Elliotte Harold, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
- Re: [XOM-interest] dtd problems, Elliotte Harold, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
Elliotte Harold, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
- Re: [XOM-interest] dtd problems, Elliotte Harold, 09/20/2004
- Re: [XOM-interest] dtd problems, Elliotte Harold, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
John Cowan, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
- Re: [XOM-interest] dtd problems, Michael Abato, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
luca, 09/20/2004
-
Re: [XOM-interest] dtd problems,
Elliotte Harold, 09/19/2004
Archive powered by MHonArc 2.6.24.