Debian Codegraph @

rhino/testsrc/doctests/441417.doctest

raw
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 friendInfo = <friend
6 > xmlns="http://ode.apache.org/simpel/1.0/definition/XmlData"><name
7 > xmlns=""/><phone xmlns=""/></friend>;
8 js> var msgIn = <xd:dataOpRequest
9 > xmlns:xd="http://ode.apache.org/simpel/1.0/definition/XmlData">
10 > <person>
11 > <firstName>John</firstName>
12 > <lastName>Doe</lastName>
13 > <phone>(999)999-9999</phone>
14 > </person>
15 > </xd:dataOpRequest>;
16 js> friendInfo.name = msgIn.person.firstName.text() + " " +
17 > msgIn.person.lastName.text();
18 John Doe