• Resolved drstir

    (@drstir)


    I’ve used the Table Maker plugin to create tables on my site. But the plugin is no longer supported so I’ve installed Table Press. My problem is the I can only export from Table Maker as an xml. And can only import into Table Press as csv. Can anyone offer any advice on how I convert xml to csv on a Mac? Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, there’s no direct way to convert that XML file to CSV or other formats, as XML is more like a language and not a fixed format.

    It might therefore be easier to simply use the HTML table output that the Table Maker plugin produces, and import that into TablePress via the HTML import format. As the import source you would simply choose the URL of the page where you are showing the table right now.

    Regards,
    Tobias

    Thread Starter drstir

    (@drstir)

    Many thanks with the prompt response, Tobias. It’s much appreciated. Your solution worked really well. I’ve put the new (top) and old (below) tables on this page. Is it possible to style the new so it’s similar to the old? https://www.goyt-valley.org.uk/goyt-valley-families/errwood-hall/

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Styling the table is possible with CSS code. In your case, you probably want
    https://tablepress.org/faq/change-background-color-table-head-row/
    and
    https://tablepress.org/faq/change-background-color-of-a-row/

    Regards,
    Tobias

    Thread Starter drstir

    (@drstir)

    Thanks again, Tobias.

    One more question (I’m not that good with css); is it possible to add multiple rows in the css rule for the row styling? Or do I have to add each row individually? This is how I’ve done the two rows…

    .tablepress-id-2 .row-2 td {
    background-color: #dce9da;
    color: #2a2a2a;
    }

    .tablepress-id-2 .row-10 td {
    background-color: #dce9da;
    color: #2a2a2a;
    }

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, you can indeed use multiple rows in the CSS selector. Here, basically, whenever the part between the { and } is the same for different chunks of CSS, you can combine the part before the { as a comma-separated list. Thus, your example could written as

    .tablepress-id-2 .row-2 td,
    .tablepress-id-2 .row-10 td {
      background-color: #dce9da;
      color: #2a2a2a;
    }

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Convert xml to csv’ is closed to new replies.