Xsd#resolvePath(XmlElement) can't differentiate by the value of the input xml.
<xs:element name="root">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="sameName" type="xs:string"/>
<xs:element name="sameName" type="xs:integer"/>
</xs:choice>
<xs:complexType>
</xs:element>
<root>
<sameName>5</sameName> <!-- should bind to either -->
<sameName>hallo</sameName> <!-- should always bind to xs:string -->
</root>
This will lead to an exception.