Questions tagged [readxml]

113 questions
10
votes
2 answers

Reading XML to a Dictionary

I need to read an XML file to a dictionary. I read few guides and I only got confused from weird words that I don't understand (such as nodes, XML validation etc.). So, could you please walk me through? I have an XML file which is written in this…
MasterMastic
  • 20,711
  • 12
  • 68
  • 90
10
votes
1 answer

File path or file location for Java - new file()

I have the following structure for my project. In Eclipse: myPorjectName src com.example.myproject a.java com.example.myproject.data b.xml In a.java, I want to read b.xml file. How can I do that? Specifically, in a.java, I…
Joey
  • 2,732
  • 11
  • 43
  • 63
10
votes
3 answers

Check if table exists with if statement in C#?

I try to put up an if statement to check if a table is already created. I only want to create one table, but as it is now I create a table every time I click the button to store the info. Any suggestions? DataTable dt; private void…
Praise
  • 557
  • 2
  • 8
  • 23
6
votes
1 answer

Read write XML node values in "NodeJs"

Can anyone guide me with how to read/ write XML nodevalues parsed by xml2js.Parser() in 'NodeJS'? So far my code is as flows: var parser = new xml2js.Parser(); fs.readFile( './foo.xml', function(err, data) { parser.parseString(data, function…
Udy Warnasuriya
  • 959
  • 2
  • 12
  • 23
4
votes
3 answers

Reading an xml subtrees and the descendants C#

I have an XML file that contains several subTrees and those subtrees can also contain subtrees in them. something like this: ... ... .. .. (The ".." are elements in the subtree). How can i read each…
aharon
  • 7,393
  • 10
  • 38
  • 49
3
votes
2 answers

How to read XML file in JMeter?

I have tried: //${__FileToString(C:\\QC\\qa\\Testlink\\Jmeter\\Expected\\test.xml,ASCII,${xmlFile})}; Found error message : org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval In file: inline evaluation of: ``//
Akshay Garg
  • 33
  • 1
  • 1
  • 3
3
votes
5 answers

Read an XML string in C#

I have a string of type string xml = @"mo2012-10-31T10:00:00Z"; I want to read dayFrequency value which is 1…
Ishan
  • 4,008
  • 32
  • 90
  • 153
3
votes
1 answer

PHP , read XML file sent via cURL

I have this code where I send data in an XML file via cURL to a press office. Now I want a feedback from the press that my orders are confirmed or done. I would like to have that in an XML file as well. I know how I send file via curl, now I would…
Barta Tamás
  • 889
  • 4
  • 15
  • 36
2
votes
1 answer

how can I read an xml attribute using readXML? how does dataset.readxml translate into tables?

I just want to know how does the table resulting from readXML look like, say if the xml file looks like this: anything I can reference tables directly by the Tables collection like…
Ayyash
  • 4,257
  • 9
  • 39
  • 58
2
votes
1 answer

Improve DataTable.ReadXml Performance

I am writing a DataTable to xml with the DataTable.WriteXml()-method. This takes a few seconds, which I think is very good. However, reading the file (38MB size, 26000rows, 36 columns) using the ReadXml()-method takes 3 minutes! I am already using…
Kjetil
  • 484
  • 4
  • 15
2
votes
1 answer

Understanding xml markup while using pandas.read_xml()

Have never tried parsing xml markup for data extraction hitherto. And now I've got the task to extract data from the statistical source. My naïve approach is to rely solely on pandas.read_xml() as per below: import io import pandas as pd import…
alphamu
  • 383
  • 1
  • 3
  • 9
2
votes
1 answer

How to read XML data and write to Excel sheet in Python for Selenium Automation

I have a scenario where I need to get the data from XML file and write the same to Excel sheet and use the same sheet for data processing. I am able to read the data from XML, but not able to insert the same data (records) to an excel file I am…
2
votes
0 answers

How to Read returned XML content and show as HTML in asp.net?

I have a HttpWebRequest from which the remote URL which returns an XML as reponse. Now, i want to parse this XML and read the content and show in to a DIV as HTML content. Web Request: protected string GetWebSiteContents(string url) { //…
SHEKHAR SHETE
  • 5,964
  • 15
  • 85
  • 143
2
votes
1 answer

How to solve Dataset Error - DataSet doesn't support 'union' or 'list' as simpleType

I need to convert some XML (it seem that the XML complitated structure) to C# dataset. So at first I tried to create dataset structure from XSD with: ds.ReadXml(@"D:\data_RUIAN\ruian\xsd\vymenny_format\VymennyFormatTypy.xsd", XmlReadMode.Auto); But…
VilemRousi
  • 2,082
  • 4
  • 24
  • 34
1
vote
3 answers

Problem with node.GetElementsByTagName in C#

I have a really simple XML file that I'm trying to read, but I can't seem to get it working. Here is the XML file: 45364634-1B I am trying to get the contents of two…
Amber Shah
  • 752
  • 1
  • 6
  • 15
1
2 3 4 5 6 7 8