Article View: fr.comp.text.xml
Article #8394Re: insérer un header xml dans un DOM
From: Thomas Broyer
Date: Fri, 26 Oct 2001 16:50
Date: Fri, 26 Oct 2001 16:50
23 lines
2037 bytes
2037 bytes
In <9rbmjo$d7r$1@s1.read.news.oleane.net>, iceman wrote:
> Petit probl�me : comment ins�rer l'en-t�te de mon fichier XML dans le DOM.
Pourquoi ?
La d�claration XML ne sert (en gros) qu'� donner des infos aux parsers
(version de XML --pour la syntaxe, qui pourra �tre diff�rente dans les
versions futures--, encoding --no comment--, standalone --qui est juste une
info sans r�percution sur le parsing).
Le DOM n'a *aucune* raison de contenir ces infos, qui ne concerne qu'une
forme s�rialis�e en XML de l'arborescence.
> Sous VB, CreateProcessingInstruction("XML","version='1.0'
> encoding="ISO-8859-1"')
> marche tr�s bien, mais sous Delphi, on me dit que "XML" en peut pas �tre
> la cible d'un PI.
Oui, c'est conforme aux specs XML, qui indiquent clairement que la
d�claration XML n'est pas un PI et qu'une PI ne peut porter pour nom "xml"
(ou un combinaison des lettres dans n'importe quelle casse: Xml, XML, etc)
Tom.
Technical Details
Message-ID:
<1106772.tdWV9SEqCh@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!teaser.fr!wanadoo.fr!proxad.net!feeder2-1.proxad.net!news1-1.free.fr!not-for-mailReferences:
<9rbmjo$d7r$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-26 09:43:40 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!teaser.fr!wanadoo.fr!proxad.net!feeder2-1.proxad.net!news1-1.free.fr!not-for-mail Message-ID: <1106772.tdWV9SEqCh@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: Fri, 26 Oct 2001 18:50:56 +0200 References: <9rbmjo$d7r$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: 23 NNTP-Posting-Date: 26 Oct 2001 18:43:40 MEST NNTP-Posting-Host: 193.252.183.7 X-Trace: 1004114620 news1-1.free.fr 850 193.252.183.7 X-Complaints-To: abuse@proxad.net