Overview

Contact Us or call 1-877-932-8228
Overview

Overview

Simple-type elements have no children or attributes. For example, the Name element below is a simple-type element; whereas the Person and HomePage elements are not.

Code Sample:

SimpleTypes/Demos/SimpleType.xml
<?xml version="1.0"?>
<Person>
	<Name>Mark Twain</Name>
	<HomePage URL="http://www.marktwain.com"/>
</Person>

As the diagram below shows, a simple type can either be built-in or user-derived. In this lesson, we will examine both.

Next