Evan Martin (evan) wrote in logjam,
Evan Martin
evan
logjam

I've understood the premises of XML for a long time, but I've always been confused about the use of attributes and element content.

For example, why would I choose one of these formats over the other:

<user>
	<username>test</username>
	<password>test</password>
	<usefastserver />
</user>
versus
<user usefastserver="1" password="test" name="test" />
Can anyone explain it, or why I should use some option in between?
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 19 comments