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
No related branches found
No related tags found
No related merge requests found
......@@ -44,16 +44,12 @@ sub parse {
@{ $self->{doc}->getElementsByLocalName('EntityDescriptor') })
{
my $data = {};
my $id = $EntityDescriptor->getAttribute('entityID');
next if $args{entity_id} && $args{entity_id} ne $id;
if ($EntityDescriptor->hasAttributes()) {
foreach my $attr ($EntityDescriptor->getAttribute('entityID')) {
$data->{entityid} = $attr;
}
}
next if ($args{entity_id}
&& ($args{entity_id} ne $data->{entityid}));
my $data = {
entityid => $id
};
foreach my $child ($EntityDescriptor->childNodes()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment