1.

What Do You Mean By Simple Element?

Answer»

Have already told you XML SCHEMA has DEFINED ELEMENTS in two types.

  1. Simple Element
  2. Complex Element

Simple Element: In XML simple elements are that element that has contain only text doesn't contain any other elements or ATTRIBUTES.

Text MAY be of any type that define in XML Schema

Like Boolean, string, date etc.

Syntax:

<xs: element name="abc" type="xyz"/>

Where, ABC is used to define name of element and xyz is used to define data type of element.

Have already told you XML Schema has defined elements in two types.

Simple Element: In XML simple elements are that element that has contain only text doesn't contain any other elements or attributes.

Text may be of any type that define in XML Schema

Like Boolean, string, date etc.

Syntax:

<xs: element name="abc" type="xyz"/>

Where, ABC is used to define name of element and xyz is used to define data type of element.



Discussion

No Comment Found