Anonymous user
XML/Input: Difference between revisions
more complicated document model for a better example
m (→{{header|Tcl}}: shorten code a bit) |
(more complicated document model for a better example) |
||
Line 4:
<lang xml><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" />
<Student Name="Dave"
<
</Student>
<Student DateOfBirth="1993-09-10" Gender="F" Name="Emily" />
</Students></lang>
Line 46 ⟶ 48:
==
{{incorrect|AWK}}
AWK has no XML support. However, careful analysis of the task shows that it just asks for the strings in double quotes. So, here goes - split on quotes, and keep every other content:
<lang awk>
|