Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML access expressions are not defined in the 2019R3 Spec #18875

Closed
hasithaa opened this issue Sep 8, 2019 · 2 comments
Closed

XML access expressions are not defined in the 2019R3 Spec #18875

hasithaa opened this issue Sep 8, 2019 · 2 comments
Labels
Spec/2019R3 Related to Ballerina Spec 2019R3 Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/SpecDeviation

Comments

@hasithaa
Copy link
Contributor

hasithaa commented Sep 8, 2019

Description:

Following xml operations are supported.

import ballerina/io;public function main() {
    xml bookXML = xml `<book>
                <name>Sherlock Holmes</name>
                <author>
                    <fname title="Sir">Arthur</fname>
                    <mname>Conan</mname>
                    <lname>Doyle</lname>
                </author>
                <!--Price: $10-->
                </book>`;
    
    io:println(bookXML.author.fname);
    io:println(bookXML["author"]["fname"]);
    io:println(bookXML.ISBN.code);
    io:println(bookXML["ISBN"]["code"]);
    io:println(bookXML.author.fname.getTextValue());
    io:println(bookXML["author"]["fname"].getTextValue());
    io:println(bookXML.author.fname@["title"]);
    io:println(bookXML["author"]["fname"]@["title"]);
}
@hasithaa hasithaa added Type/SpecDeviation Type/SpecImprovements Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Sep 8, 2019
@hasithaa hasithaa changed the title XML access expressions are not de XML access expressions are not defined in the 2019R3 Spec Sep 8, 2019
@MaryamZi MaryamZi added this to the Ballerina 1.1.0 milestone Oct 17, 2019
@MaryamZi MaryamZi added the Spec/2019R3 Related to Ballerina Spec 2019R3 label Oct 18, 2019
@hasithaa
Copy link
Contributor Author

Related to #19570

@hasithaa hasithaa removed this from the Ballerina 1.1.0 milestone Oct 24, 2019
@rdhananjaya
Copy link
Member

Fixed in 1.2 and #22106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spec/2019R3 Related to Ballerina Spec 2019R3 Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/SpecDeviation
Projects
None yet
Development

No branches or pull requests

3 participants