Help Contents / Communication / Receivers / readListFlatTags

readListFlatTags

reads a complete file and output its contents as one big list. HTML or XML tags are being preserved as one word each,  as is the rest in between. This is mostly useful for parsing HTML or XML files. 

Example: 

	openRead "colors_by_name.html 
	setReader "colors_by_name.html  show readListFlatTags 
	[ 
	 <html>  
	 	 <body>  
	 	 	 <table>  
	 	 	 	 <tbody>  
	 	 	 	 	 <tr>  
	 	 	 	 	 </tr>  
	 	 	 	 	 <tr>  
	 	 	 	 	 	 <td width="100" bgcolor="#F0F8FF"> </td>  
	 	 	 	 	 <td> ALICEBLUE </td>  
	 	 	 	 	 	 <td width="100" bgcolor="#FAEBD7"> </td>  
	 	 	 	 	 <td> ANTIQUEWHITE </td>  
	 	 	 	 	 	 <td width="100" bgcolor="#FFEFDB"> </td>  
	 	 	 	 	 <td> ANTIQUEWHITE1 </td>  
	 	 	 	 	 	 <td width="100" bgcolor="#EEDFCC"> </td>  
	 	 	 	 	 <td> ANTIQUEWHITE2 </td>  
	 	 	 	 	 </tr>  
	 	 	 	 	 <tr>  
	 	 	 	 	 	 <td width="100" bgcolor="#CDC0B0"> </td>  
	 	 	 	 	 <td> ANTIQUEWHITE3 </td>  
	;... 
	close "colors_by_name.html 


previous: readListFlatRaw	next: readRawLine
