Select the Complex Types —> author in the Schema view. Right-click on either author or sequence and choose Add —> Element...
This opens Add Element dialog box.
Type the Name of the Element.
For example, firstname
Type from the list of radio button options. In the current example, choose the Use Existing Type radio button. In the listing area beneath the Type radio button, expand the Built-in Types node. Select string.
Click OK.
The Schema view now contains a node for the firstname element, whose parent is the sequence under the author Complex Types.
Click Save All.
Similarly, create another Element — lastname. Repeat steps 1 through 5.
Click Complex Types — Add Complex Type...
Type Name: book
Click OK.
Click either Complex Types: book or sequence —> Add —> Element —> genre
Use Existing Types —> Build-in Types —> string
Click either Complex Types: book or sequence —> Add —> Element —> title
Use Existing Types —> Build-in Types —> string
Click either Complex Types: book or sequence —> Add —> Element —> author
Use Existing Types —> Complex Types —> author
In the current example, the author is a Global Complex Type because it comprises of two Element Types (firstname and lastname).
Click either Complex Types: book or sequence —> Add —> Element —> price
Use Existing Types — Build-in Types — double
Click either Complex Types: book or sequence —> Add —> Element —> quantity
Use Existing Types — Build-in Types — unsignedInt