Questions tagged [writexml]

39 questions
0
votes
2 answers

XML read uncomfortable values

I really need your help. I wanted to read data from an XML file which content seems like that 949 Sonstige 49 特别餐 49 49 950
0
votes
2 answers

writing xml bug

public static void writeXmlFile(Document doc, String filename) { try { // Prepare the DOM document for writing Source source = new DOMSource(doc); // Prepare the output file File file = new…
mynameisanthpny
  • 679
  • 1
  • 8
  • 16
0
votes
1 answer

Xml file show incorrect time data after exported it from gridview

I have a gridview which display some information. One of those information is a time data like: 19:40:00.0000000. When I tried to export my gridview to xml file using WriteXml I found incorrect data for my time, it is look like : PT7H50M . --> My…
Emperor
  • 37
  • 6
0
votes
1 answer

DataTable WriteXml Float separator

quick question regarding a DataTable Function which I'm using. I have a DataTables returned by a SQL stored procedure. The StoredProcedure returns all fields as individual fieldtypes (string, int, float, datetimes) quantity (float) STORED…
Luca
  • 1,766
  • 3
  • 27
  • 38
0
votes
3 answers

How do you suppress the dataset name being written when using WriteXml?

C# - When using: DataSet.WriteXml(filePath); The dataset name will be written as the root element. How do you suppress this? Note: I have a schema tied to this DataSet, the XML data reads into the schema correctly. Current Output:
zoom
  • 3
  • 2
0
votes
0 answers

Changing the xml structure when I use WriteXML converting DataSet to xml?

The following puts content of an excel file (one worksheet; one column) into a DataSet that needs to be an excel string: DataSet ds = excelReader.AsDataSet(); StringWriter sw = new StringWriter(); ds.WriteXml(sw); …
Chaka
  • 1,709
  • 11
  • 33
  • 58
0
votes
1 answer

DataSource WriteXML printing child rows for associate parent

In my database, I have a parent and child tables. For example, parent table contains last name and address, and child table contains last and first name. There is a foreign key, so that a row in child table must have corresponding last-name in…
Alex
  • 1,192
  • 14
  • 30
0
votes
1 answer

DataSet.WriteXml() table order

I am creating an xml file using c# dataset.writexml() method. One of my parent tables have two child tables, and I want the xml to display records from both tables together. I added relations in my dataset between Parent table and child tables, but…
-1
votes
1 answer

My inner loop xml is not working as expected in C++ vector as expected using write_xml

I have tried to write an xml file using write_xml from vector. But I could not get the desired output as expected.I have given sample input, code, output and the desiredoutput typedef std::vector playertype; //vector static playertype…
codebase
  • 71
  • 5
1 2
3