When you get an error like this, the simplest way is to add the prefix declaration; in your case, as per schema, just add to your root element the following attribute:
xmlns:sample="http://www.example.com"
Also, this is rather related with XML namespaces.