I know how white space is handled in text nodes for XML and HTML, but I'm uncertain about white spaces inside tag elements themselves. Obviously, white spaces are used inside tags to separate attributes, but is it valid to have white spaces before the '<' or '>'?
For example:
< foo >
< /foo >
Or even:
<foo>
< / foo >
Are these tags valid XML? What about HTML (assuming they were actual HTML tag names)?