hi there again... --- Robert Nicholson <[EMAIL PROTECTED]> skrev: > In your case if there are nested tables which one is considered the > "last?"
good point you have there, i haven't thought about it. but i would say the last parents (root) element of table to be the the "last" one... > If you don't have nested tables can you just keep track of each table > element you get until you've finished parsing the document? i don't have any nested tables in my documents, i just want to remove the last table from some html document that contains unknown number of tables, but always have last table that contains a banner and that one i wanted to be removed... but how do i get track of it, when i don't know how many tables i got? and most important how do i get back in the document on the right place... should i parsed it first to count how many tables i got, and parse it for second time to get rid of the last one? > I prefer to use HTML::TokeParser for HTML parsing. pleas, any example will be appreciated ... thanks in advance. Beskyt din computer mod virus og misbrug! L�s mere i Yahoo! Sikkerhedscenter p� www.yahoo.dk/sikkerhedscenter
