The basic building blocks of XML Schemas are elements and
attributes. Data types define the valid content that elements and attributes
contain. When you create XML Schemas, you define the individual elements and
attributes and assign valid types to them. Elements describe data, whereas
attributes are like properties of an element, in that they provide further
definition about the element the way that properties describe characteristics
of objects and classes.
An element describes the data that it contains. Elements can
also contain other elements and attributes.
An attribute is a named simple-type definition that cannot
contain other elements. Attributes can also be assigned an optional default
value and they must appear at the bottom of complex-type definitions.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The basic building blocks of XML Schemas are elements and attributes. Data types define the valid content that elements and attributes contain. When you create XML Schemas, you define the individual elements and attributes and assign valid types to them. Elements describe data, whereas attributes are like properties of an element, in that they provide further definition about the element the way that properties describe characteristics of objects and classes.
An element describes the data that it contains. Elements can also contain other elements and attributes.
An attribute is a named simple-type definition that cannot contain other elements. Attributes can also be assigned an optional default value and they must appear at the bottom of complex-type definitions.