🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

XML dynamique dans des fichiers de "log"

#9671
From: Jean-Philippe BRUNET
Date: Thu, 22 Feb 2001 18:36
22 lines
1695 bytes
Je souhaite utiliser un format XML dans un fichier de log.
Un tel fichier recoit des enregistrements en permanance et donc sauf
complication inutile ne peut pas �tre encadr� par un �l�ment racine XML.
La forme est:
<event time='0123456'> .... </event>
<event time='0123468'> .... </event>
...
ou des �v�nements peuvent �tre ajout�s � tout moment.

La seule facon que j'ai trouv� pour le traiter simplement en XML est de le
consid�rer comme un fragment et de le relire en tant que tel si on est sous
DOM, ou bien de l'inclure sous forme d'entit� externe dans un "vrai" fichier
XML.
<?xml version='1.0'>
...une dtd ...
<logfile>
&monlogfile;
</logfile>
je ne trouve pas cela tr�s satisfaisant.
Existe-t-il une autre facon plus "propre" de proc�der?

Jean-Philippe BRUNET
Technical Details
Message-ID: <973m51$uut$1@news5.isdnet.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!isdnethub!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,aae43e89caf0cd49,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-02-22 10:38:01 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!isdnethub!not-for-mail
From: "Jean-Philippe BRUNET" <jean-philippe.brunet@libertysurf.fr>
Newsgroups: fr.comp.text.xml
Subject: XML dynamique dans des fichiers de "log"
Date: Thu, 22 Feb 2001 19:36:43 +0100
Lines: 24
Message-ID: <973m51$uut$1@news5.isdnet.net>
NNTP-Posting-Host: dyn-213-36-3-17.ppp.libertysurf.fr
X-Trace: news5.isdnet.net 982866913 31709 213.36.3.17 (22 Feb 2001 18:35:13 GMT)
X-Complaints-To: abuse@isdnet.net
NNTP-Posting-Date: 22 Feb 2001 18:35:13 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400