Skip to content

Python code to create XML files (ElementTree, Pandas, os and Datetime)

Notifications You must be signed in to change notification settings

psilvautomata/XML_Files_Creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

$Creating$ $XML$ $Files$

XML files are an exceptional tool that simplifies data interaction with machines and facilitates readability for both humans and machines. They ensure the security and integrity of your data.

The script contains the libraries: xml.etree.ElementTree for XML manipulation, pandas for handling Excel files, os for file path operations, and datetime for date and time operations. It starts reading data from an Excel file specified by the user and identifies the last filled row and the columns, extracting it values. The script then prepares for XML generation by iterating over the rows, starting from the second row (Empty cells in the Excel file are filled with empty strings to avoid printing errors). Then creates an XML tree structure with a root element and several child elements. Finally, the script saves the XML file to a specified directory and prints a success message.

About

Python code to create XML files (ElementTree, Pandas, os and Datetime)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages