Anonymous user
XML/Input: Difference between revisions
Vedit macro language added
(Specify that you must extract student names) |
(Vedit macro language added) |
||
Line 189:
}
$parser parse $xml</lang>
=={{header|Vedit macro language}}==
This implementation finds all ''Student'' tags and then displays the contents of their ''Name'' parameter.
<lang vedit>
Repeat(ALL) {
Search("<Student ", ERRBREAK)
#1 = Cur_Pos
Match_Paren()
if (Search_Block('Name="', #1, Cur_Pos, BEGIN+ADVANCE+NOERR+NORESTORE)==0) { Continue }
#2 = Cur_Pos
Search('"')
Type_Block(#2, Cur_Pos)
Type_Newline
}
</lang>
Output:
April
Bob
Chad
Dave
Émily
=={{header|Visual Basic .NET}}==
|