Thanks for your answer, but it still some thing missing.
Sorry about my english.
These way, it works element by element, but I need before I parsed all
poste elements, I like to know if there is a poste element have an
attribut 'true'.
If the attribut of all poste elments are false, I will output the
message 'there no poste'
I will give an example :
<categorie>
<poste att='true'>
comments about poste a
</poste>
<poste att='false'>
comments about poste b
</poste>
<poste att='false'>
comments about poste c
</poste>
</categorie>
If I use this test, I will get 'comments about poste a'. This is a
correct, but my question, if I set the first attribut to false, I want
the output is 'there no poste' one time for the 3 poste element.
Another, I like to have a condition before start parsing the poste
elements, that tell me in these all poste element, there is at least one
attribut to true.
Thanks
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!