How is this notation called?

37 Views Asked by At

I used the xml / xml-schema example from here. When I decode the xml-string with the given schema, I get a nested dict as output:

{'@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', '@orderid': '889923', '@xsi:noNamespaceSchemaLocation': 'shiporder.xsd', 'orderperson': 'John Smith', 'shipto': {'name': 'Ola Nordmann', 'address': 'Langgt 23', 'city': '4000 Stavanger', 'country': 'Norway'}, 'item': [{'title': 'Empire Burlesque', 'note': 'Special Edition', 'quantity': 1, 'price': Decimal('10.90')}, {'title': 'Hide your heart', 'quantity': 1, 'price': Decimal('9.90')}]}

How is this notation called?

Or can someone help me out with a format description?

I think "@" means the attributes and the nested dicts are the complex types. But I can't read anything out of the example.

0

There are 0 best solutions below