Following is the xsd.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:dmb="http://hmh.mycompany.com/schema/hmh/Message"
targetNamespace="http://hmh.mycompany.com/schema/hmh/Message"
elementFormDefault="qualified" attributeFormDefault="unqualified"
version="1.0">
<xsd:complexType name="Message">
<xsd:annotation>
<xsd:documentation>This represents the message
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="provider" type="xsd:string" />
<xsd:element name="product" type="xsd:string" />
<xsd:element name="status" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
And following is the xml file.
<?xml version="1.0" encoding="UTF-8"?>
<Message xmlns="http://hmh.mycompany.com/schema/hmh/Message">
<provider>PRODUCT</provider>
<product></product>
<status></status>
</Message>
When try to validate it using http://www.utilities-online.info/xsdvalidation, I got following error
Line 2, 62: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 62; cvc-elt.1: Cannot find the declaration of element 'Message'.