Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML files and tables
#1
I have benn asked to write a Python program to parse XML files recorded in a database, look for specific keywords and sentences, extract the associated value and compare it with the correspondent value stored in tables.

I would greatly appreciate any code example, and tutorial dealing with:
• accessing a database
• reading an XML file
• extracting values associated to specific nodes in the XML file
• accessing data organized in a table whose rows ann columns have headers

Thank you in advance
Reply
#2
For processing XML, there's ElementTree in the standard library. Which database are you using? You'll need to find a library that can talk to it. As for the output, I'm not aware of libraries here, but if you're just producing text output, it's probably not too hard to write yourself.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020