You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently came across this problem when trying to get the location of an AWS S3 Bucket. XMLDict appears to not be able to parse one-layer deep strings (for lack of better terminology?)
using XMLDict
xml_response =""" <?xml version="1.0" encoding="UTF-8"?> <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">eu-west 1</LocationConstraint>"""parse_xml(xml_response)
XMLDict.XMLDictElement with 0 entries
However, if the xml_response is two-layers deep it works fine:
using XMLDict
xml_response =""" <?xml version="1.0" encoding="UTF-8"?> <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Location>eu-west 1</Location></LocationConstraint>"""parse_xml(xml_response)
XMLDict.XMLDictElement with 1 entry:"Location"=>"eu-west 1"
The text was updated successfully, but these errors were encountered:
I recently came across this problem when trying to get the location of an AWS S3 Bucket. XMLDict appears to not be able to parse one-layer deep strings (for lack of better terminology?)
However, if the
xml_response
is two-layers deep it works fine:The text was updated successfully, but these errors were encountered: