I thought that in XML you could have a tag with opening and closing tags, and then if you didn't need the closing tag, you could just use a tag with a slash at the end of it.
<!-- needs text/elements within tag so opening and closing tag are needed -->
<myTag>Text here</myTag>
<!-- doesn't need text/elements so doesn't have closing tag -->
<myTag />
I'm guessing that this is just because that's whatever everyone decided was best and this is now just a XHTML peculiarity, but why? Is there a technical reason for this that I don't know about?
Thanks!