Hey, I'm attempting to write an XML parser in C++, and I have some questions on some XML syntax. First: what is the rule for what goes between the end of the last attribute and the end of a tag? E.g.:
is this ok: <tag attribute="value" >
?
is this ok: <tag attribute="value">
?
and this: <tag attribute="value" />
?
and this: <tag attribute="value"/>
?
Which of those are ok and which are not (if any)?
Second, can there be whitespace between the attribute name and the equal sign and the equal sign and the attribute value: (atr="value", atr = "value",atr ="value", or atr= "value")?
That's it for now, but I might have a couple more questions later.