WHAT IS ELEMENT AND ATTRIBUTES IN XML?

Vijay Shukla

Total Post:81

Points:405
Posted by  Vijay Shukla
XML 
XML
 1400  View(s)
Ratings:
Rate this:
  1. Vijay Shukla

    Post:81

    Points:405
    What is Element and attributes in XML?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!