$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 )
Table $nexttidx
#set ( $ccount = $colCount+1 )
#foreach ( $cidx in [0..$ccount] )
#end
* |
#foreach ( $cidx in [0..$colCount] )
#set ( $nextcidx = $cidx + 1 )
$rhelper.getColumn($cidx) |
#end
#foreach ( $ridx in [0..$rowCount] )
#set ( $nextridx = $ridx + 1 )
${nextridx} |
#foreach ( $cidx in [0..$colCount] )
#set ( $nextcidx = $cidx + 1 )
$!rhelper.getCell($table, $cidx, $ridx) |
#end
#end
#set( $tidx = $tidx + 1 )
#end
$doc.getObjectNumbers("XWiki.TableDataSource")