From: Nadia.Payet@infineon.com
Date: 08/09/2003 - 09:53
Comment faire pour avoir accès à plusieurs lignes successives dans un
fichier xml ?
J'ai le fichier xml suivant :
<ImaGroup value="11">
<property name="No" val="1"/>
<property name="sci_h" val="17" label="Service Connection
Identifier Handle of IMA Group"/>
<property name="operStatus" val="1" label="Group Traffic"/>
<property name="neState" val="9" label="Near-End Operational
State"/>
<property name="feState" val="9" label="Far-End Operational
State"/>
<property name="neFmState" val="1" label="Near-End Failure
Status"/>
<property name="feFmState" val="1" label="Far-End Failure
Status"/>
<property name="lastChange" val="2" label="Last Change"/>
<property name="runningSecs" val="2" label="Running Since"/>
<property name="unavailSecs" val="15" label="Unavailable
Seconds"/>
<property name="leastDelayLink" val="720907" label="Least
Delay Link"/>
<property name="diffDelayMaxObs" val="0" label="Maximum
Differential Delay"/>
<property name="neNumFailures" val="1" label="Number Of
Failures At Near-End"/>
<property name="feNumFailures" val="1" label="Number Of
Failures At Far-End"/>
<property name="txAvailCellRate" val="5387" label="Available
Tx Cell Rate"/>
<property name="rxAvailCellRate" val="5387" label="Available
Rx Cell Rate"/>
<property name="numTxCfgLinks" val="1" label="Number Of Tx
Links"/>
<property name="numRxCfgLinks" val="1" label="Number Of Rx
Links"/>
<property name="numTxActLinks" val="1" label="Active Tx
Links"/>
<property name="numRxActLinks" val="1" label="Active Rx
Links"/>
</ImaGroup>
Et j'aimerais utiliser les valeurs des quatres dernières "property"
En fait, il me faudrait comparer numTxCfgLinks à numTxActLinks et
numRxCfgLinks à numRxActLinks...
Et comme les variables sont des constantes, je n'y arrive pas...
Comment fait-on, une fois qu'on a détecté une ligne, pour lire les lignes
suivantes ???
MERCI
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|