Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Xml filter

$
0
0

hi Sir,

pls,  have probleme to collect after filtering the items:

count member:

$Xcount = ($Xreconnect.reconnect.city | ? {($_.name -and $_.av -eq "BAO")}).count

# filter:

                    foreach ($Xuser in  ($Xreconnect.reconnect.city | ? {$_.name -and $_.av -eq "BAO"}))
                        {
                        $XName = $Xuser.name.toupper()
                        }
                       
                    $Create.WriteLine("<td style=""color:#FF0000"" title=""City-Name""><strong>"+$XName+"</strong></td>")

so i get only the last one from 35 items?

wath is wrong?

The table:

http://arenas.pagesperso-orange.fr/kalender/test-table.html

thanks for your help

my best regards

Arnold

 

 


Viewing all articles
Browse latest Browse all 10624

Trending Articles