XML attribute vs XML element

前端 未结 20 2588
暖寄归人
暖寄归人 2020-11-22 01:34

At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of ou

20条回答
  •  一整个雨季
    2020-11-22 02:08

    Both methods for storing object's properties are perfectly valid. You should depart from pragmatic considerations. Try answering following question:

    1. Which representation leads to faster data parsing\generation?

    2. Which representation leads to faster data transfer?

    3. Does readability matter?

      ...

提交回复
热议问题