<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://frp.sage.fr/wiki1000/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=GetAttribute_%28xmlitem%29</id>
		<title>GetAttribute (xmlitem) - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=GetAttribute_%28xmlitem%29"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=GetAttribute_(xmlitem)&amp;action=history"/>
		<updated>2026-05-07T21:02:32Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=GetAttribute_(xmlitem)&amp;diff=1186&amp;oldid=prev</id>
		<title>Syfre : Nouvelle page : &lt;source lang='delphi'&gt;function GetAttribute(const iName:string; const iDefault:string):string;&lt;/source&gt;  Cette fonction retourne la valeur d'un attribut, si l'attribut n'existe pas u...</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=GetAttribute_(xmlitem)&amp;diff=1186&amp;oldid=prev"/>
				<updated>2009-08-07T13:40:28Z</updated>
		
		<summary type="html">&lt;p&gt;Nouvelle page : &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function GetAttribute(const iName:string; const iDefault:string):string;&amp;lt;/source&amp;gt;  Cette fonction retourne la valeur d&amp;#039;un attribut, si l&amp;#039;attribut n&amp;#039;existe pas u...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang='delphi'&amp;gt;function GetAttribute(const iName:string; const iDefault:string):string;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette fonction retourne la valeur d'un attribut, si l'attribut n'existe pas une valeur par défaut est retournée.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Result&lt;br /&gt;
|Valeur de l'attribut ou iDefault si l'attribut n'existe pas&lt;br /&gt;
|-&lt;br /&gt;
|iName&lt;br /&gt;
|Nom de l'attribut&lt;br /&gt;
|-&lt;br /&gt;
|iDefault&lt;br /&gt;
|Valeur par défaut si l'attribut n'existe pas&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Exemple:&lt;br /&gt;
&amp;lt;source lang='delphi'&amp;gt;&lt;br /&gt;
procedure foo(elt:TxmlItem);&lt;br /&gt;
var id:Integer;&lt;br /&gt;
begin&lt;br /&gt;
  id := strToInt(elt.GetAttribute('id','-1'));&lt;br /&gt;
  if id=-1 then Exit;&lt;br /&gt;
  ....&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi:&lt;br /&gt;
&lt;br /&gt;
*[[AddAttribute (xmlitem)|AddAttribute]]&lt;br /&gt;
&lt;br /&gt;
{{Footer|Eléments XML (tech)}}&lt;br /&gt;
[[category:Elément XML]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	</feed>