I tried validating my XML file with a XSD file but I get the following error message:
[Error]: cvc-complex-type.2.3: Element \'paragraph\' cannot ha
This is precisely the purpose of mixed content:
And:
Note that you also probably want paragraph and definition to be in a xs:choice macOccurs="unbounded" given your XML.
paragraph
definition
xs:choice macOccurs="unbounded"
Here's your XSD updated with all changes needed so that your XML will be valid: