Questions tagged [readxml]

113 questions
0
votes
1 answer

Edit XML Doc Whenever there is a input to change it

public void ModifyXML(string inputAsset, string test, string version) { File.Create(Constants.XMLDoc).Close(); XmlReader xReader = XmlReader.Create(xmlDoc); while (!xReader.EOF) { if (xReader.Name != "Asset") …
PhillipsJP
  • 47
  • 8
0
votes
0 answers

How do i pick out just one element to add to listBox1, not the hole row?

here is an example of the xml file: Tomas 06.04.2016 5 Øyvind
0
votes
1 answer

VB.NET: Read Multiple Properties and Tables from XML File

I have decided to save some application data using XML files. I am very new to XML files, so bear with me. I have a class like this): Public Class config Public Property name As String Public Property type As String Public Property…
Kevin
  • 172
  • 1
  • 12
0
votes
4 answers

XML Read specific Node

I want to read an specific xml node and its value for example John fetcher and my code behind should be some thing like this (I don't know how it should be…
Tarik
  • 79,711
  • 83
  • 236
  • 349
0
votes
1 answer

XML get certain data from node in Matlab 2015b

I have parsed an xml node into my MATLAB project with the following information: Name: '#text' Attributes: [] Data: '500' Children: [] I can easily acess the name of the node using node.getNodeName. Now I want to read the data out of…
0
votes
3 answers

C# retrieving data from DataSet

I have started with a simple DataTable, in which I have written to a XML file. On the next time the program runs, I want to check to see if the XML file exits, and read it. It appears writing the xml is fine, and I believe reading it is fine, but I…
Rickybobby
  • 245
  • 1
  • 13
0
votes
1 answer

Problems deleting rowindex in dataGridView

So I'm trying out some logic. It's not going well. My problem, for now, is when reading a local XML document into the dataGridView. (LoadXmlButton_Click method) Here's my code: using System; using System.Collections.Generic; using…
Awots
  • 75
  • 8
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
0 answers

Application exits with Access Violation on DataSet.ReadXml

I have an intermittent “bug” in my code. As per the code below, my app crashes when it tries to assign the table (0) in the dsAlerts dataset to a table, as in the last line of the supplied code, with the error blah.exe has exited with code…
Rhys Gottwald
  • 71
  • 2
  • 7
0
votes
0 answers

Read a XML and create a list to save the data

I have a xml to read and to create a list from that data similar to the hierarchy of the xml.According to the following code i was able to traverse through the whole xml.(Recursive method). Since the xml structure can change, i had to use to…
posha
  • 881
  • 4
  • 16
  • 28
0
votes
0 answers

Read xml file from end to start c#

I have big xml files which have many data (unnecessary for me now) and a very large number of procedures. I want to read the xml from the end to take the last procedure. (From the last START PROCEDURE to the last END PROCEDURE and everything between…
0
votes
1 answer

DataSet.ReadXml not getting all data

I have a relatively simple xml file that I would like to use to fill a DataSet. I am trying the following code using (DataSet ds = new DataSet()) { ds.ReadXml(Server.MapPath("xmlFileName.xml")); } But my dataset ends up with only one row…
atallest
  • 97
  • 1
  • 13
0
votes
1 answer

Join multiple DataTables

I'm reading an XML file and storing the results into a DataSet. This dataset contains 10 DataTables. I would like to join all DataTables into one datatable and use this table to set as a datasource for a datagridview so I can later export the…
smr5
  • 2,593
  • 6
  • 39
  • 66
0
votes
1 answer

Reading a large 1 GB xml file

I need open a large XML file and append an AddressInfo element into existing file. What is the best and fastest way to do this? My XML example:
zrabzdn
  • 995
  • 2
  • 14
  • 33
0
votes
1 answer

Implementing IXmlSerializable for content containing data with or without CDATA tags

I am trying to figure out a way to parse an xml tag where content is passed in with CDATA tags for some input, but not for all. For example, the following is sample content I would receive for data which contains CDATA tags. But there is some other…
jvtech
  • 1,369
  • 3
  • 9
  • 10