Question 26 2 pts XML and JSON are both semi-structured data models which can represent data similarly. The following is
Posted: Mon Jun 06, 2022 6:05 pm
Question 26 2 pts XML and JSON are both semi-structured data models which can represent data similarly. The following is a JSON example: { 'patient': 4711, 'postcode': 2020, 'visits': [ {'when': '2020-01-29', 'comment': 'annual checku p'}, {'when': '2020-02-14', 'comment': 'blood test resul ts'} ] } Which of the following choices is an equivalent representation of the same data in XML?
<patient id='4711'> <postcode>2020</postcode> <visits> <visit> <when>2020-01-29</when> <comment>annual checkup</comment> </visit> <visit> <when>2020-02-14</when> <comment>blood test results</comment> </visit> </visits> </patient> <patient>4711</patient> <postcode>2020</postcode> <visits> <when>2020-01-29</when> <comment>annual checkup</comment> <when>2020-02-14</when> <comment>blood test results</comment> </visits>
<xml> patient: 4711 postcode: 2020 <visits> when: 2020-01-29 comment: annual checkup when: 2020-02-14 comment: blood test results </visits> </xml> <xml> <patient>4711</patient> <postcode>2020</postcode> <when>2020-01-29</when> <comment>annual checkup</comment> <when>2020-02-14</when> <comment>blood test results</comment> </xml>
<patient id='4711'> <postcode>2020</postcode> <visits> <visit> <when>2020-01-29</when> <comment>annual checkup</comment> </visit> <visit> <when>2020-02-14</when> <comment>blood test results</comment> </visit> </visits> </patient> <patient>4711</patient> <postcode>2020</postcode> <visits> <when>2020-01-29</when> <comment>annual checkup</comment> <when>2020-02-14</when> <comment>blood test results</comment> </visits>
<xml> patient: 4711 postcode: 2020 <visits> when: 2020-01-29 comment: annual checkup when: 2020-02-14 comment: blood test results </visits> </xml> <xml> <patient>4711</patient> <postcode>2020</postcode> <when>2020-01-29</when> <comment>annual checkup</comment> <when>2020-02-14</when> <comment>blood test results</comment> </xml>