XML/XPath: Difference between revisions
Content deleted Content added
→{{header|REXX}}: added a second version (generic parsing). |
m →generic parsing: adjusted indentations, add whitespace to argument list. |
||
Line 1,831:
end /*j*/
call parser 'item',
say center('first item:',@L.1,'─') /*show a nicely formatted header.*/
say @.1 /*show the first ITEM found. */
Line 1,850:
parser: parse arg yy,tail,,@. @@. @@@; $$=$; @L=9; yb='<'yy; ye='</'yy">"
tail=word(tail 1, 1) /*use a tail ">" or not?*/
else parse var $$ (yb) @@.# (ye) $$ /* " " */
#=#-1 /*adjust # things found.*/
return</lang>
|