Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

cas:serviceResponse multiple xml nodes with the same tag_name#17

Open
skudi wants to merge 2 commits intodiscogs:masterfrom
skudi:master
Open

cas:serviceResponse multiple xml nodes with the same tag_name#17
skudi wants to merge 2 commits intodiscogs:masterfrom
skudi:master

Conversation

@skudi
Copy link

@skudi skudi commented Nov 12, 2019

Fixes #14
If cas:attributes under cas:serviceResponse contains multiple nodes with the same tag_name, their values are accessible as python List.

<cas:attributes>
     <cas:firstName>John</cas:firstName>
     <cas:role>user</cas:role>
     <cas:role>manager</cas:role>
[...]
response.attributes['role'] == [ 'user', 'manager' ]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get attribute return value

1 participant