September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,9 +1,9 @@
|
|||
USING: io sequences xml xml.data xml.traversal ;
|
||||
USING: io multiline sequences xml xml.data xml.traversal ;
|
||||
|
||||
: print-student-names ( string -- )
|
||||
string>xml "Student" tags-named [ "Name" attr print ] each ;
|
||||
|
||||
"""<Students>
|
||||
[[ <Students>
|
||||
<Student Name="April" Gender="F" DateOfBirth="1989-01-02" />
|
||||
<Student Name="Bob" Gender="M" DateOfBirth="1990-03-04" />
|
||||
<Student Name="Chad" Gender="M" DateOfBirth="1991-05-06" />
|
||||
|
|
@ -11,4 +11,4 @@ USING: io sequences xml xml.data xml.traversal ;
|
|||
<Pet Type="dog" Name="Rover" />
|
||||
</Student>
|
||||
<Student DateOfBirth="1993-09-10" Gender="F" Name="Émily" />
|
||||
</Students>""" print-student-names
|
||||
</Students>]] print-student-names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue