You are reading a single comment by @frankenbike and its replies. Click here to read the full conversation.
  • So I was just using the screenshot you posted last page to start indexing into the data, using the indents in the file to determine the 'level' of indexing needed. The next level looks like it'll be 'VehicleMonitoringDelivery', within which there are at least 2 'VehicleActivity'.
    This is where things get a bit more involved... a key in a dictionary has to be unique, so the xmltodict library is going to have to do some jiggery pokery to make it work (put the VehicleActivity elements in an array: https://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html (I think!))

    Thanks for posting about this btw, it's inspired me to get my dev environment set up on my pc and get noodling again.

  • The very first example in the xmltodict docs page has two <many> keys and they're concatenated into a list. So hopefully those VehicleActivity items will be fine.

About

Avatar for frankenbike @frankenbike started