🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9187

Re: XML to DOM via JAXP

#9187
From: Rapha�l THERY
Date: Wed, 09 May 2001 14:02
39 lines
2472 bytes
C'est superbre �a marche, encore merci
Rapha�l

Alain Ketterlin <alain@dpt-info.u-strasbg.fr> a �crit dans le message :
wyr8xy4pjx.fsf@polya.u-strasbg.fr...
> "Rapha�l THERY" <raphael.thery@free.fr> writes:
>
> > Tom. <ptittom+news@free.fr> a �crit dans le message :
> > 1267755.Hq7AAxBmiT@ltgt.net...
>
> > > EntityResolver permettrait aussi de retourner un flux vide, pour
simuler
> > la
> > > DTD vide du point pr�c�dent, et ceci sans fichier.
> > > C'est je pense la solution au probl�me (� condition que tu n'ais
vraiment
> > > pas besoin de la DTD)
>
> > Euh ... si vous connaissez des exemples de mise en application je suis
> > preneur ;-)
>
> public class MonResolver implements EntityResolver {
>
>         public InputSource resolveEntity(String publicId,
>                                          String systemId)
>         {
>                 // Teste s'il s'agit d'une des DTD, si oui
>                 return new InputSource(new StringReader(""));
>         }
>
> }
>
> et passe une instance a setEntityResolver().
>
> (evidemmment, je n'ai pas teste, il faudra au moins quelques import).
>
> -- Alain.
>
> P/S: pour virer les DOCTYPE, j'essaierai avec sed...
Technical Details
Message-ID: <j6cK6.1335$wf3.1830981@nnrp5.proxad.net>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2-1.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail
References: <7F7K6.1130$xb4.1253420@nnrp1.proxad.net> <a_9K6.1358$bq3.1787019@nnrp4.proxad.net> <wyu22u4u0r.fsf@polya.u-strasbg.fr> <cHaK6.206$Fm1.544915@nnrp3.proxad.net> <1267755.Hq7AAxBmiT@ltgt.net> <l3bK6.1328$mx1.1738762@nnrp6.proxad.net> <wyr8xy4pjx.fsf@polya.u-strasbg.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,6fc0915233ea40c
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-05-09 07:02:56 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2-1.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail
From: "Rapha�l THERY" <raphael.thery@free.fr>
Newsgroups: fr.comp.text.xml
References: <7F7K6.1130$xb4.1253420@nnrp1.proxad.net> <a_9K6.1358$bq3.1787019@nnrp4.proxad.net> <wyu22u4u0r.fsf@polya.u-strasbg.fr> <cHaK6.206$Fm1.544915@nnrp3.proxad.net> <1267755.Hq7AAxBmiT@ltgt.net> <l3bK6.1328$mx1.1738762@nnrp6.proxad.net> <wyr8xy4pjx.fsf@polya.u-strasbg.fr>
Subject: Re: XML to DOM via JAXP
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <j6cK6.1335$wf3.1830981@nnrp5.proxad.net>
Date: Wed, 09 May 2001 14:02:55 GMT
NNTP-Posting-Host: 195.115.154.77
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp5.proxad.net 989416975 195.115.154.77 (Wed, 09 May 2001 16:02:55 CEST)
NNTP-Posting-Date: Wed, 09 May 2001 16:02:55 CEST
Organization: Guest of ProXad - France