Article View: fr.comp.text.xml
Article #8400Re: insérer un header xml dans un DOM
From: Thomas Broyer
Date: Mon, 29 Oct 2001 18:42
Date: Mon, 29 Oct 2001 18:42
31 lines
2412 bytes
2412 bytes
In <9rj3rp$iis$1@s1.read.news.oleane.net>, iceman wrote: > Le probl�me s'est pos� quand j'ai voulu enregistrer des choses toutes > cimples comme des noms avec des accents. "enregistrer" ??? > sans "encoding = ..." le parser n'est pas tr�s content. Tu parles de sortie vers un fichier, quel rapport avec un parser ? > Il me reste toujorus la solution d'ins�rer du texte � la main ma si ce > 'nest pas tr�s propre. > Y a-t-il une m�thode du DOM permettant d'ins�rer proprement le header Pas du DOM, puisque l'info port�e par la d�claration XML n'a rien � voir avec le DOM. > ou,� d�faut, une m�thode pour ins�rer du texte en d�but de fichier XML ? Si tu as des probl�mes, il faut voir dans ta m�thode de s�rialisation de ton arbre DOM vers un document XML. Si �a te g�n�re un fichier invalide (cod� dans un autre codage que UTF-8 ou UTF-16 et sans d�claration XML pr�cisant le codage), il y a un bug dans cette partie du code. Si c'est ton code, corrige le bug, si tu utilises les fonctionnalit�s de MSXML, plains toi � Microsoft et/ou change de biblioth�que. Ou alors au moment de s�rialiser, ajoute la d�claration XML appropri�e en t�te de fichier. Sans plus d'info, impossible d'en dire plus... Tom.
Technical Details
Message-ID:
<2833314.GaqSPkdTlG@ltgt.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2-1.proxad.net!news1-1.free.fr!not-for-mailReferences:
<9rbmjo$d7r$1@s1.read.news.oleane.net> <1106772.tdWV9SEqCh@ltgt.net> <9rj3rp$iis$1@s1.read.news.oleane.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,17aab1c529c1e5db X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-10-29 10:35:01 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2-1.proxad.net!news1-1.free.fr!not-for-mail Message-ID: <2833314.GaqSPkdTlG@ltgt.net> From: Thomas Broyer <tbroyer@domain.tld.invalid> Subject: Re: insérer un header xml dans un DOM Newsgroups: fr.comp.text.xml Reply-To: tbroyer@ltgt.net Mail-Copies-To: nobody Date: Mon, 29 Oct 2001 19:42:32 +0100 References: <9rbmjo$d7r$1@s1.read.news.oleane.net> <1106772.tdWV9SEqCh@ltgt.net> <9rj3rp$iis$1@s1.read.news.oleane.net> Organization: </> User-Agent: KNode/0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit Lines: 31 NNTP-Posting-Date: 29 Oct 2001 19:35:00 MET NNTP-Posting-Host: 80.11.37.149 X-Trace: 1004380500 news1-1.free.fr 865 80.11.37.149 X-Complaints-To: abuse@proxad.net