XML/Input: Difference between revisions

467 bytes added ,  15 years ago
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
&#x00C9;mily
 
=={{header|Visual Basic .NET}}==
Anonymous user