You get the table like this:
//span[@data-id='table1']/table
Select the data-id attribute and get the child element of name table.
You get the table like this:
//span[@data-id='table1']/table
Select the data-id attribute and get the child element of name table.