Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in BI by (17.6k points)

Does anybody know where I can get the XML Schema for Tableau Workbooks, Data Extracts, and Data Sources?

I know I could reverse engineer using existing report files but I will not get all the possible values for the different complex data types. I am also aware that Tableau Software does not encourage to edit the files directly, but it's just an experiment I am trying to do.

1 Answer

0 votes
by (47.2k points)
  • You can use python to parse the xml.

  • i have coded it to retrieve all your information example code

  • You could iterate through required elements like loop through required element

import xml.etree.ElementTree as ET

tree = ET.parse(filename)

XML_datasources = tree.findall('datasources')

XML_val = XML_datasources[0].iter('datasource')

for item in XML_val:

    name = item.get('name')

  • There will be multiple nested items parsing

Related questions

0 votes
1 answer
asked Dec 18, 2020 in Python by laddulakshana (12.7k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94k users

Browse Categories