The following code snippet works and prints `<bar xmlns="x">bar</bar>` as expected:

```
import ballerina/io;
public function main() {
    final xml x1 = xml `<foo xmlns="x">
        <bar>bar</bar>
    </foo>`;

    xmlns "x" as x;
    io:println(x1[x:bar]);
}

```

However if there is no XML namespaces involved, as in the code snippet below, I get an unexpected compilation error: `undefined symbol 'bar'`.

```
import ballerina/io;
public function main() {
    final xml x1 = xml `<foo>
        <bar>bar</bar>
    </foo>`;

    // compilation error: undefined symbol 'bar'
    io:println(x1[bar]);
}

```

How do I access an XML element when there is no namespaces ? E.g. `xmlns "" as x;` is a compilation error too.

I'm using Ballerina 1.1.0.