I am using XML for a configuration file in PHP (using SimpleXML), creating a configuration file that is more standard.
Having all the values ββin the elements or using attributes?
Elements Example:
<database>
<user>test-user</user>
<pass>test-pass</pass>
</database>
Attribute Example:
<database user="test-user" pass="test-pass"></database>
Are there any advantages anyway?
Other languages ββmay also need to read the same configuration file, such as Java and Perl.
source
share