The qualified elementFormQualified must be respected only when the current element is not a global element.
The namespace attribute is only needed if it's not included in the xmlnsInEnvelope collection.

elementFormDefault qualified vs. unqualified fix.

Refinement of elementFormDefault element with prefix elements