Questions tagged [xmltocsv]

24 questions
2
votes
2 answers

How can we convert a nested XML to CSV in Python Dynamically, Nested XML may contain array of values as well?

Sharing Sample XML file. Need to convert this fie to CSV, even if extra tags are added in this file. {without using tag names}. And XML file tag names should be used as column names while converting it to CSV} Example Data:
Eja
  • 45
  • 1
  • 7
1
vote
1 answer

Need help converting XML to CSV

I need to convert the below XML to CSV I tried the below one as…
Hemnath
  • 13
  • 3
1
vote
2 answers

Parsing nested complex XML to CSV using powershell

Good day, I am new to powershell and i am trying to parse a complex xml to CSV: Here is the xml code
Mehdi C
  • 13
  • 3
0
votes
2 answers
0
votes
1 answer

Only the first open port number is saving to the csv file

Only the first open port in the tag is listed in the CSV output file; no other open ports are listed. The output is printed to the csv file but only the first line in the ports tag is output to the csv file. You can try by run the…
0
votes
1 answer

I am learning to work with xml files and parsing and saving them in csv format

I am using the following code to parse a xml file write to csv, however all I am able to get a csv file created with no columns and rows. import csv import xml.etree.ElementTree as ET def xml_to_csv(xml_file, csv_file): # Parse the XML file …
0
votes
0 answers

My Nifi process xml to csv conversion is returning only the schema using convert record

i was trying to convert xml to csv using Apache nifi but the put file returns only the schema with no records . i used convert record as you can see on the image and expect converted csv file . i also used xml reader and csv set writer controllers…
0
votes
1 answer

heavily nested xml to dataframe with python

I have a heavily nested xml that I'm trying to convert to a data frame object. attached failed attempts bellow. input : johnny.xml file, contains the following text-
0
votes
0 answers

Trying to create the CSV files and the "label_map.pbtxt" file from xml files in colab

I'm using this code to create csv file: def xml_to_csv(path): classes_names = [] xml_list = [] for xml_file in glob.glob(path + '/*.xml'): tree = ET.parse(xml_file) root = tree.getroot() for member in root.findall('object'): …
0
votes
0 answers

How can i get Xml Data in csv file i have extracted the Data but able to get output in Csv

I am getting the data from XML which I can print too but I cannot import it into CSV format (I need it to be opened as an excel file ) encode , enter output of xml file I tried the CSV library. I want to get output exported in a CSV file which…
0
votes
2 answers

convert xml to csv by python

My friends In the following code, I try to convert XML (https://issat.ttn.tn/cu/export/akouda.php) to CSV file, The Code : import requests import xml.etree.ElementTree as Xet import pandas as pd from html import unescape url =…
0
votes
1 answer

Powershell xml to CSV select node based on Subset's info

I'm trying to convert an XML file to CSV. To make that I need to check values of some sets ("laborid" and "kundenid" ) and also subsets ("tourid"and "tourzeit") based on a subset with "befundtour" equal true: XXXXX
0
votes
1 answer

getting specific attribute name and it's value from xml to csv via python and pandas

i am converting nested xml file to csv via python and pandas library. there is many attribute in xml but i just want to export specific attribute name with its value in the csv file.
K.Stefan
  • 31
  • 6
0
votes
1 answer

XSLT transformation XML-to-CSV accessing nested elements with same name

I'm trying to transform the below XML sample to a CSV but I have difficulties matching nested elements with same name (Rule). What is the XSLT transformation that can generate this structure? File@path="filename1.txt" | Rule@id="3.1.6" |…
Flaviu
  • 931
  • 11
  • 16
0
votes
0 answers

Extracting Values from XM using python

I have a XM tag as Noida UP I need to get the value as Address_1 = Noida Address_2…
1
2