My question is, what are the "rules" to XML? For instance I've never clearly understood when I should use attributes or not. I know there are general rules when formatting it, but I can't seem to find a tutorial that simply lists them (without going into nonsense I really don't need to know).
I've started work on a configuration system for one of my scripts and I've decided to use XML to format the configuration data. Here is the sample I created and am working with:
Code: Select all
<config>
<admin username="test" password="45093">
<members>
<member id="1" name="2">
<ip>343.4.34.33</ip>
<ip>53.56.235.63</ip>
</member>
</members>
</config>Also, if anyone can point me to some good XML tutorials that only discuss proper formatting (with examples) that would be helpful. I really prefer to do this right the first time
Thanks.
~ Josh