Questions tagged [xmlconvert]
31 questions
4
votes
1 answer
unexpected keyword argument 'codec' in XMLConverter
Below error message:
device = XMLConverter(rsrcmgr, retstr, laparams=laparams, codec=codec)
TypeError: __init__() got an unexpected keyword argument 'codec'
Original Code:
rsrcmgr = PDFResourceManager()
retstr = BytesIO()
codec = 'utf-8'
laparams =…

Subash Nadar
- 101
- 2
- 6
4
votes
1 answer
Dealing with Invalid XML characters using XElement
I have a C# API that returns an XElement object. This XElement object is constructed via code that looks like -
string invalidXML = "a \v\f\0";
XElement fe = new XElement("Data", invalidXML);
Console.WriteLine(fe);
By observation, I know that…

sandunes90
- 455
- 2
- 4
- 22
3
votes
1 answer
how to identify the empty xml tag using statx parser
I want to idendify the tag while parsing this XML content. we have method like isStartElement() or isEndElement(). but this is not comes under both category. pls help me. how to address this kind of tags.
Code :
import java.io.StringReader;
…

Karthikeyan Sukkoor
- 968
- 2
- 6
- 24
3
votes
4 answers
C#/.Net -Fast way to Parse XML / XML -> Json
I'm new to XML, since now I've only worked with Json:(
I have a XML file which looks like this:
id1
desc1
…

darkdante
- 707
- 1
- 17
- 36
2
votes
1 answer
How to backport .NET 4's XmlConvert.IsWhitespaceChar to .NET 3.5?
I need to backport some code that uses this method to .NET 3.5, and from Reflector I can't seem to discern what would be the correct way to provide my own C# implementation for it.
Any help?

Omer Raviv
- 11,409
- 5
- 43
- 82
1
vote
1 answer
Excel to XML conversion
I want to convert Excel to XML using Excel.
I am able to map Excel with XML.
Now, I enter the records in Mapped Excel.
Next I click on export but pop-up appears with message :
Cannot save or export XML data. The XML maps in this workbook are not…

2FaceMan
- 443
- 2
- 18
- 34
1
vote
2 answers
XmlConvert and nullable results?
In my project I receive an XmlElement of which I have to parse a few properties back to a class.
For mapping these I use the XmlConvert class. But the source being XML there often are empty nodes or nodes that are not readable. Rather then…

Boris Callens
- 90,659
- 85
- 207
- 305
1
vote
1 answer
How to apply code to all the files in a directly and convert xml files to txt files
I'm trying to apply code in python to extract necessary information from each xml file and write them in txt files.
I successfully executed my code but the result shows only one file.
Also, my code doesn't look smart, I would be very glad if anyone…

ikemoto fumiko
- 15
- 3
1
vote
1 answer
how to read attributes of XML file via XSLT program in abap
I have an XML file as below and i need to read attribute values and fetch it to an internal table.
but the values are not fetched and the internal table remains empty. Please let me know if there is anything wrong with the code . Thank you so much…

Shilpa Urandoor
- 13
- 3
1
vote
1 answer
How to convert nested list to XML in C#
I am using the below method to convert a list to XML. How can I alter this in order to convert a nested list in to XML.
private string ConvertProductListToXML(List productDMList)
{
var xEle = new XElement("Products",
from emp…

Harsha W
- 3,162
- 5
- 43
- 77
1
vote
2 answers
1
vote
2 answers
XML to Text transform using XSLT with new line
I looked at multiple examples and gave each on them a try. Not sure what am I missing. The only difference I found from other examples was that I have multiple nodes under .
XML:

user6015642
- 11
- 4
1
vote
3 answers
Mule JaxB binding error - "package" doesnt contain ObjectFactory.class or jaxb.index
I am using mule with maven. I have used a xml to object converter. My model files are annotated with jaxb annotations. The JAXB context ref looks like this -:
mulexml:jaxb-context name="JAXB_Context" packageNames="com.xml.model" doc:name="JAXB…

Arup Mishra
- 189
- 2
- 14
1
vote
1 answer
XML to CSV converter using API
I want to convert my XML file into CSV file but i want to use any tool who convert it automatically and i can pass input parameter using its API.I don't want to use any script to directly convert XML to csv. Is there any way to perform this?

Aanshi
- 282
- 1
- 5
- 22
0
votes
2 answers
Convert XML File with nested hierarchy placed in Azure Data lake to CSV using C# Azure Function
I have the following xml file with the below structure to convert to csv using Azure function C#. The XML file is located in Azure Data Lake location. The structure of the file is as follows.

Sandeep T
- 421
- 8
- 22