Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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 (16.4k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...