Python Forum
Read xml column inside csv file with Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read xml column inside csv file with Python
#1
Hi,
I am very new in Python and need to read an xml column inside a csv file with Python.
I can see some code on google on how to read that csv file but I don’t know how to read the xml column inside the csv file. Can someone help? any idea would be appreciated.

Thank you!
Reply
#2
Depending on what "read" means, you can use an xml parser, such as lxml to parse the xml text. Then,what you want to do with it is not described by your question.
Reply
#3
please provide:

  1. sample csv file
  2. your code attempt
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Connecting to Remote Server to read contents of a file ChaitanyaSharma 1 327 May-03-2024, 07:23 AM
Last Post: Pedroski55
  Help copying a column from a csv to another file with some extras g0nz0uk 3 536 Feb-01-2024, 03:12 PM
Last Post: DeaD_EyE
  Python Alteryx QS-Passing pandas dataframe column inside SQL query where condition sanky1990 0 809 Dec-04-2023, 09:48 PM
Last Post: sanky1990
  Recommended way to read/create PDF file? Winfried 3 3,032 Nov-26-2023, 07:51 AM
Last Post: Pedroski55
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,699 Nov-09-2023, 10:56 AM
Last Post: mg24
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 841 Oct-29-2023, 12:40 PM
Last Post: Mark17
  read file txt on my pc to telegram bot api Tupa 0 1,215 Jul-06-2023, 01:52 AM
Last Post: Tupa
  parse/read from file seperated by dots giovanne 5 1,208 Jun-26-2023, 12:26 PM
Last Post: DeaD_EyE
  Formatting a date time string read from a csv file DosAtPython 5 1,506 Jun-19-2023, 02:12 PM
Last Post: DosAtPython
  How do I read and write a binary file in Python? blackears 6 7,657 Jun-06-2023, 06:37 PM
Last Post: rajeshgk

Forum Jump:

User Panel Messages

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