$response.setContentType("text/xml") Tables from the page $doc.getFullName()
#set ( $tables = $rhelper.getTables() ) #set ( $tidx = 0 ) #foreach ($table in $tables) #set ( $rowCount = $rhelper.getTableRowCount($table) ) #set ( $colCount = $rhelper.getTableColumnCount($table) ) #set ( $nexttidx = $tidx + 1 ) #set ( $ccount = $colCount+1 ) #foreach ( $cidx in [0..$ccount] ) #end #foreach ( $cidx in [0..$colCount] ) #set ( $nextcidx = $cidx + 1 ) #end #foreach ( $ridx in [0..$rowCount] ) #set ( $nextridx = $ridx + 1 ) #foreach ( $cidx in [0..$colCount] ) #set ( $nextcidx = $cidx + 1 ) #end #end
Table $nexttidx
*$rhelper.getColumn($cidx)
${nextridx}$!rhelper.getCell($table, $cidx, $ridx)
#set( $tidx = $tidx + 1 ) #end
$doc.getObjectNumbers("XWiki.TableDataSource")