Skip to content

Xsd#resolvePath can find multiple XsdNodes #2

@Mewel

Description

@Mewel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions