XML/Input: Difference between revisions
Content added Content deleted
(added ocaml) |
No edit summary |
||
Line 18: | Line 18: | ||
Dave |
Dave |
||
Emily |
Emily |
||
=={{header|ActionScript}}== |
|||
<actionscript> |
|||
package |
|||
{ |
|||
import flash.display.Sprite; |
|||
public class Spectrum extends Sprite |
|||
{ |
|||
public function Spectrum() |
|||
{ |
|||
var xml:XML = <Students> |
|||
<Student Name="April" /> |
|||
<Student Name="Bob" /> |
|||
<Student Name="Chad" /> |
|||
<Student Name="Dave" /> |
|||
<Student Name="Emily" /> |
|||
</Students>; |
|||
for each(var node:XML in xml..Student) |
|||
{ |
|||
trace(node.@Name); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</actionscript> |
|||
=={{header|Visual Basic .NET}}== |
=={{header|Visual Basic .NET}}== |