Questions tagged [writexml]

39 questions
0
votes
2 answers

How to output the difference between two xml files into another xml file

I need to compare two XML files and print the results in another xml files This code compares and print the differences in the console correctly,but it prints only one line in the XML file.Moreover when I view the output in the console,it seems it…
inihsrah
  • 11
  • 8
0
votes
2 answers

How to write CData of XML which contain inner nodes in C#?

I have following xml document <![CDATA[Link]]>
SHEKHAR SHETE
  • 5,964
  • 15
  • 85
  • 143
0
votes
0 answers

I want to replace an empty node in xml with python

I want to replace the closing to Passenger cars with python. I just need to add "Passenger cars" between the category opening and closing xml tags categories=xml.getElementsByTagName('category')[0].toxml() if…
0
votes
1 answer

Exporting SQL db to an Excel issue

I'm trying to set up a button to easily export the database in my app to an excel sheet. However I'm having issues getting it to work. And I cant figure out what's going wrong, since I'm not seeing any errors. { string cs = @"Data…
0
votes
0 answers

XML writing- new file

I am using Python to pick a specific set of values from my XML: children = root[2].getchildren() for child in children: ET.dump(child) Once I use this I get a print of exactly what I need from my XML. I can also change the root number to access…
Alex L
  • 1
0
votes
2 answers

trying to writeXml in VB.net

UPDATE Thanks vlam, I am now writing to Stream as you suggested, I get an XML file and no more errors, my XML file only has this, no data, Why do I not have data? I have a datagridview and a dataset on a form. …
yellow
  • 13
  • 6
0
votes
2 answers

How to write C# DataSet object to XML with customized nodes structure?

I have a similar case - I receive a DataSet object with data tables willed with data (e. g. customers table ...) from an external module (done by other programmer). I then save the data set object to an xml using the writeXml method - here is my…
anar chipur
  • 109
  • 2
  • 10
0
votes
2 answers

c# write XML looping a datatable or dataset

I need to create a XML files from a dataset or datable; foreach record in dataset I have to create one file, following my code: SqlDataAdapter da = new SqlDataAdapter("select top 5 * from dbo.Log", con); DataSet ds = new DataSet(); da.Fill(ds,…
Fabio V.
  • 13
  • 3
0
votes
0 answers

Issues on saving XML file after loading it on application startup

I have a tracking program that saves a hidden XML file during a save or auto save in case the user accidentally closes the program and needs to load it back up. It is imported into a dataset and data table. Here's the code for the WriteXML and…
The57thGamer
  • 13
  • 1
  • 3
0
votes
1 answer

How to properly create custom XML elements?

I'm recently working on a Weather Application that I want to save every customer search in an .xml formatted file. . . See GUI Design Here . . I'm using the following code on Java to write the needed elements on the .xml file but the issue is that I…
Loizos Vasileiou
  • 674
  • 10
  • 37
0
votes
1 answer

WriteXML, ReadXML Issue with Table Name

I have a program where I run a query and store data in a DataTable. I then allow the user to save that DataTable.WriteXML. The problem I have is that I want to read that saved file (XML file) into another DataTable with a different name - and it…
0
votes
1 answer

c# reading xml to listview

Write XML code XmlTextWriter xmlchat = new XmlTextWriter("chatroomdoc.xml", UTF8Encoding.UTF8); xmlchat.WriteStartDocument(); xmlchat.Formatting = Formatting.Indented; xmlchat.WriteStartElement("Chat"); foreach…
0
votes
0 answers

Dot(.) not converted to unicode: Dataset.WriteXML C#

I am writing a DataSet into an XML file using: DataSet.WriteXml(XMLWriter, XmlWriteMode.WriteSchema); XMLWriter encoding is set with Encoding.UTF8. All works fine with my code, except the dot ('.') character. WriteXml converts special characters…
Syed
  • 98
  • 7
0
votes
1 answer

Create write and save xml file dynamically in c# .net

I want to create xml file and write data from database in it. file will be created dynamically. I am storing data in DataTable. Query is select documentId,documentContent from tblDocument where status = 'F' where documentContent is xml data. I have…
Dinav Ahire
  • 581
  • 1
  • 10
  • 30
0
votes
1 answer

Error on createTextNode MATLAB 2015b XMLUtils

I write some data into a XML-file: [FileName,PathName] = uiputfile('*.xml','Select the XML file'); if length(FileName) > 3 completePath = [PathName FileName]; % Create the DOM-Object docNode =…