Static table on XWiki page to LiveData migration

Hello, we have list of records managed on static XWiki page with HTML Table content with 303 records (lines).

Would like to migrate it to LiveTable or LiveData or AWM application.

Is there any programmatic way to do it?

Hello,

Sure, everything is doable through scripting.

The simplest is to ask a good LLM to either do it or to write the script to do it. Otherwise you need to study the xwiki apis to do it:

  • get the XDOM of the page and iterate to find the table content
  • create an xclass to hold the data
  • move the table content data in xobjects of that xclass
  • use the livedata macro on the xclass