Handle case when namespace is used and defined in same element

This XML fails, but is valid:

<ns:Element xmlns:ns="myNs"/>
Merge pull request #3 from danschultz/namespace-assertion-fix

Handle case when namespace is used and defined in same element