Skip to content
Snippets Groups Projects
Commit 1a4563f0 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

simplification: each entity has a single entityID attribute

parent 5298f510
Branches
Tags
No related merge requests found
...@@ -44,16 +44,12 @@ sub parse { ...@@ -44,16 +44,12 @@ sub parse {
@{ $self->{doc}->getElementsByLocalName('EntityDescriptor') }) @{ $self->{doc}->getElementsByLocalName('EntityDescriptor') })
{ {
my $data = {}; my $id = $EntityDescriptor->getAttribute('entityID');
next if $args{entity_id} && $args{entity_id} ne $id;
if ($EntityDescriptor->hasAttributes()) { my $data = {
foreach my $attr ($EntityDescriptor->getAttribute('entityID')) { entityid => $id
$data->{entityid} = $attr; };
}
}
next if ($args{entity_id}
&& ($args{entity_id} ne $data->{entityid}));
foreach my $child ($EntityDescriptor->childNodes()) { foreach my $child ($EntityDescriptor->childNodes()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment