PageRenderTime 132ms CodeModel.GetById 31ms app.highlight 1ms RepoModel.GetById 59ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/tests/javascript-xml/javascript-xml.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 8 lines | 5 code | 0 blank | 3 comment | 0 complexity | d7aa72293b69175fd3d48270183a7f9d MD5 | raw file
1// ECMA 357 11.1.4
2// an XML object representing a person with a name and age
3var person = <person><name>John</name><age>25</age></person>;
4// a variable containing an XML object representing two employees
5var e = <employees>
6   <employee id="1"><name>Joe</name><age>20</age></employee>
7   <employee id="2"><name>Sue</name><age>30</age></employee>
8</employees>;