wso2 / mi-vscode

Micro Integrator extension for Visual Studio Code
Apache License 2.0
2 stars 3 forks source link

Data mapper does not support xml attribute #15

Closed kalaiyarasiganeshalingam closed 3 months ago

kalaiyarasiganeshalingam commented 4 months ago

Description: The data mapper input/output does not list attributes when a given XML element has attributes.

The ns2:city has an attribute but the input window doesn't list that value.

Screenshot 2024-06-27 at 12 06 33

Affected Product Version: 4.3.0-alpha

OS, DB, other environment details and versions:
Mac

Steps to reproduce:

<ns1:employees xmlns:ns1="http://wso2.employee.info" xmlns:ns2="http://wso2.employee.address">
    <ns1:employee>
        <ns1:firstname>Mike</ns1:firstname>
        <ns1:lastname>Jhonson</ns1:lastname>
        <ns2:addresses>
            <ns2:address location="home">
            <ns2:city postalcode="30000">KS</ns2:city>
            <ns2:road>main rd</ns2:road>
            </ns2:address>
            <ns2:address location="office">
            <ns2:city postalcode="10003">NY</ns2:city>
            <ns2:road>cross street</ns2:road>
            </ns2:address>
        </ns2:addresses>
    </ns1:employee>
    <ns1:employee>
        <ns1:firstname>Patric</ns1:firstname>
        <ns1:lastname>Jane</ns1:lastname>
        <ns2:addresses>
            <ns2:address location="home">
            <ns2:city postalcode="60000">Melborne</ns2:city>
            <ns2:road>park street</ns2:road>
            </ns2:address>
            <ns2:address location="office">
            <ns2:city postalcode="10003">NY</ns2:city>
            <ns2:road>cross street</ns2:road>
            </ns2:address>
        </ns2:addresses>
    </ns1:employee>
    <ns1:employee>
        <ns1:firstname>Thelesa</ns1:firstname>
        <ns1:lastname>Lisbon</ns1:lastname>
        <ns2:addresses>
            <ns2:address location="home">
            <ns2:city postalcode="60000">Madrid</ns2:city>
            <ns2:road>Palace street</ns2:road>
            </ns2:address>
            <ns2:address location="office">
            <ns2:city postalcode="10003">NY</ns2:city>
            <ns2:road>cross street</ns2:road>
            </ns2:address>
        </ns2:addresses>
    </ns1:employee>
</ns1:employees>
arunans23 commented 3 months ago

Fixed with https://github.com/wso2-enterprise/vscode-extensions/pull/3352