1
2
Arg 0: <Session><clientIdentifier>PC01</clientIdentifier><appInstance>Server_01</appInstance><requestCorrelator>Server_01-1239098064359-1279122</requestCorrelator><armRequestCorrelator>ADR6AAAAAAABNkfWAAABH/QnnmWhL8Q8mrvtZB1AIEoykmMMvbqFApHpmmxKE2gX8T/KBg==</armRequestCorrelator><defaultOrigin>FRA</defaultOrigin></Session>
Arg 1: <BncfInput><date>07APR09</date><origin>FRA</origin><Code>001</Code><Nr>024</Nr><status>-1</status></BncfInput>
1 2 3 4 5 6 7 8 9 10 11
use XML::Simple; my $xml=XMLin("datei.xml") or die "$!"; for my $sesstion ($xml->{"MessageRoot"}->{Session}) { my $ci = $session->{clientIdentifier}; my $dt = $session->{BncfInput}->{date}; my $or = $session->{BncfInput}->{origin}; my $cd = $session->{BncfInput}->{Code}; my $nr = $session->{BncfInput}->{Nr}; print "$ci : ($dt,$or,$cd,$nr)"; }