Should numerical attributes in XML be quoted?
<root>
<node size=45 />
<foo bar=1.2>
<baz foo=20>
</foo>
</root>
vs.
<root>
<node size="45" />
<foo bar="1.2">
<baz foo="20">
</foo>
</root>
My code editor/browser seems fine without quotes, but most online resources seem to say they’re required.
http://www.w3schools.com/xml/xml_attributes.asp
Attribute values must always be quoted. Either single or double quotes can be used. For a person’s sex, the person element can be written like this:
or like this:
If the attribute value itself contains double quotes you can use single quotes, like in this example:
or you can use character entities:
Updated to expand based on the newest comment, according the Microsoft universe at least.
XElement.Value Property
You can also see refer to this question as well