| 1 |
// This Source Code Form is subject to the terms of the Mozilla Public |
| 2 |
// License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 |
// file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 4 |
|
| 5 |
js> var xml = <atom:feed xmlns:atom="http://www.w3.org/2005/Atom"> |
| 6 |
> <atom:entry> |
| 7 |
> <atom:title>One</atom:title> |
| 8 |
> </atom:entry> |
| 9 |
> <atom:entry> |
| 10 |
> <atom:title>Two</atom:title> |
| 11 |
> </atom:entry> |
| 12 |
> </atom:feed>; |
| 13 |
js> var atom = new Namespace("http://www.w3.org/2005/Atom"); |
| 14 |
js> print(xml.atom::entry.(atom::title == "One")); |
| 15 |
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"> |
| 16 |
<atom:title>One</atom:title> |
| 17 |
</atom:entry> |