Questions tagged [writexml]

39 questions
4
votes
1 answer

Cannot WriteXML for DataTable because Windows Search Returns String Array for Authors Property

The System.Author Windows property is a multiple value string. Windows Search returns this value as an array of strings in a DataColumn. (The column's data-type is string[] or String().) When I call the WriteXML method on the resulting data-table, I…
AMissico
  • 21,470
  • 7
  • 78
  • 106
3
votes
1 answer

use R to read a XML file, select few nodes and write it back to another XML

I am trying to use R to read a XML file, select few nodes and write it back to another XML I am learning now to handle XML files in R, referred the example in this link "http://www.r-bloggers.com/r-and-the-web-for-beginners-part-ii-xml-in-r/", which…
James
  • 163
  • 1
  • 8
3
votes
2 answers

Writing a XML file with C# to a specific XML structure

The Usual way, i code to write a XML file is, XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; XmlWriter writer = XmlWriter.Create("Products.xml", settings); writer.WriteStartDocument(); …
Anuya
  • 8,082
  • 49
  • 137
  • 222
2
votes
1 answer

Create XML file via Progress 12 using WRITE-XML statement

I am trying to generate an XML file in Progress 12 using temp tables and a WRITE-XML statement. I am almost there. The format should be xxx
JSS
  • 27
  • 2
2
votes
1 answer

Converting Boost ptree node to XML string

I am using boost (version 1.70.0) property tree. Is there a way to convert a node to XML string including the node itself, not just node's children? If I have this XML: ..
M.K.
  • 159
  • 8
2
votes
2 answers

Reading and Writing XML as relational data - best practices

I'm supposed to do the fallowing: 1) read a huge (700MB ~ 10 million elements) XML file; 2) parse it preserving order; 3) create a text(one or more) file with SQL insert statements to bulk load it on the DB; 4) write the relational tuples and write…
Pedro Dusso
  • 2,100
  • 9
  • 34
  • 64
1
vote
0 answers

WriteXml - Collection was modified; enumeration operation might not execute

I'm coding in Visual Studio 2019 and I get the following error message: "Collection was modified; enumeration operation might not execute". It happens when I try to save a dataset with the method WriteXml: myDataset.WriteXml(myPath) Due to the fact…
Dario Fore
  • 11
  • 2
1
vote
1 answer

DataTable.WriteXML and Child Nodes

I've got the following snippet of code: var dataSet = new DataSet("Data"); var table = GetCustomerTable(); var orgTable = GetOrganizationTable(); dataSet.Tables.Add(table); dataSet.Tables.Add(orgTable); …
Jim B
  • 8,344
  • 10
  • 49
  • 77
1
vote
2 answers

xsl transform of dataset.writexml XML

I have a scenario where I am exporting a .net dataset to an xml file, but I want to transform the stucture of the xml output to a more hierarchical structure. Below is the format of the dataset as exported by dataset.xmlwrite() method.
Clinemi
  • 906
  • 6
  • 20
  • 33
1
vote
2 answers

App.Current.Shutdown not letting DataSet.WriteXml complete results in corrupt config file

Environment - C#, .NET 4.0, WPF, VS2010 I have an app that uses a keyboard hook to detect when a combination of four keys is pressed. When this occurs it calls Configuration.Save(), which has a call to myConfigDataSet.WriteXml(myConfigFile). And…
Joey Powell
  • 89
  • 1
  • 5
0
votes
1 answer

How to have dynamic file name when using dataset.writexml vb.net

... wish all of you are having a nice Valentine's Day .. For me, I am stack at work finishing my program. I have a piece of code to write an xml file. Dim ds As New DataSet Dim dt As DataTable = GetDtable() ds.Tables.Add(dt) Dim…
Laurence
  • 7,633
  • 21
  • 78
  • 129
0
votes
1 answer

C#/.net Preserve Schema and XML when calling XMLWriter() function from dataset

I have an xml file Example Location
Zayum
  • 79
  • 7
0
votes
0 answers

Dataset.WriteXml Method writes an additional table instead of overwritting

I have a dataset in my hand with one table only and I want to write it to the current xml file. When I write it, it creates a new table and add it to it instead of overwritting. everytime I write it, It multiples the number of tables by…
Cem
  • 1
0
votes
0 answers

I want to read a xml file and store only specific tags into a new xml file using java?

Ex: Xmlfile.xml( id, name, age, email) and newxmlfile.xml(email).
GAJENDRAN
  • 1
  • 1
0
votes
1 answer

Parsing XML with java - does not get all xml values

Trying to parse xml to get "CreDtTm" tag value from this XML (pasted not the whole):
LittleJohnny
  • 105
  • 2
  • 13
1
2 3