XML/Input: Difference between revisions

241 bytes added ,  15 years ago
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" /Gender="M" DateOfBirth="1992-07-08">
<StudentPet Type="dog" Name="EmilyRover" />
</Student>
<Student DateOfBirth="1993-09-10" Gender="F" Name="Emily" />
</Students></lang>
 
Line 46 ⟶ 48:
 
 
=={{header|[[AWK}}]]==
{{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>
Anonymous user