Question: what is the difference between simple element and complex element?
Answer: A simple element is an XML element that does not have any attributes or any sub (child) elements. A simple element can be declared with a simple datatype. What is a complex element? A complex element is an XML element that have at least one attribute, or at least one sub (child) element.