XSD Complex Types-XSD Complex Empty Element - XSD

What is the use of XSD Complex Empty Element?

Complex Empty Element will only have attribute and no content. See below example

We can declare Complex Empty elements using below methods

Use type attribute

Define a complex type element "StudentType" and then create element student of type "StudentType".

Use ComplexContent

Define an element of complexType with complexContent. ComplexContent specifies that the content of the element is to be restricted.

Use ComplexType alone

Define an element of complexType with required attribute element only.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XSD Topics