A
afshar
I want to use XML to import/export some data. My data is like a
database record like an employee information. I'm wondering which is
better to use: saving data in attributes or saving them in elements. A
typical XML may contain hundred to thousands of data. See following:
using elements:
....
<employee>
<name>john</name>
<age>45</age>
<salary>52000<salary>
</employee>
....
OR
using attributes:
....
<employee name="john" age="45" salary="52000">
....
?
database record like an employee information. I'm wondering which is
better to use: saving data in attributes or saving them in elements. A
typical XML may contain hundred to thousands of data. See following:
using elements:
....
<employee>
<name>john</name>
<age>45</age>
<salary>52000<salary>
</employee>
....
OR
using attributes:
....
<employee name="john" age="45" salary="52000">
....
?