XML - Quoting Numerical Attributes

MaLe4kA

New Member
Should numerical attributes in XML be quoted?\[code\]<root> <node size=45 /> <foo bar=1.2> <baz foo=20> </foo></root>\[/code\]vs.\[code\]<root> <node size="45" /> <foo bar="1.2"> <baz foo="20"> </foo></root>\[/code\]My code editor/browser seems fine without quotes, but most online resources seem to say they're required.
 
Back
Top