3 ms·
Enclosing the attribute within double quotes isn't pre-disposing the value to be of a particular type. It's part of the XML spec that attribute values are conta
by oceanswave 10y ago
Enclosing the attribute within double quotes isn't pre-disposing the value to be of a particular type. It's part of the XML spec that attribute values are contained within double quotes, and must be to be valid. The type isn't implied in the file.
An xml schema such as
<xs:element name="Task"> <xs:complexType> <xs:attribute name="ID" type="xs:int" use="required" /> </xs:complexType> </xs:element>
could more explicitly declare the type of the value.
- 616c 10y agoThanks for the explanation. I guess in this case I learned be careful what you wish for. I guess this is why I prefer the <Item> <Parameter><Data></Parameter> </Item> But this is my ignorance of XML and familiarity with HTML showing.