Questions tagged [xmlreader]

xmlreader - Represents a reader that provides fast, noncached, forward-only access to XML data.

Represents a reader that provides fast, noncached, forward-only access to XML data.

More

1120 questions
-2
votes
2 answers

SQL Server stored procedure doesn't return a result in VS C# but does in SQL Server

I have written a stored procedure that returns XML. When I run the stored procedure in SQL Server management studio, it returns the xml as it should but, when I run it in my C# code, no xml is returned. My code looks like this: using (SqlConnection…
rogdawg
  • 687
  • 3
  • 11
  • 33
-2
votes
1 answer

Reading complex XML file in c#

I have a XML file and I want to read it and show some part of my xml in a list: AIMed_d30 0 Isolation of human delta-catenin and its…
Nooshin T
  • 1
  • 3
-2
votes
1 answer

How can I remove all comments from a large XML file?

How can I remove all comments from a large XML file? I have a large file XML and I want to thin it and I want to remove all the comments. The file has a size of over 200 mb and it takes a lot to parse the file and query something. Code for parse is…
Razvan Baba
  • 155
  • 9
-3
votes
1 answer

Reading from an XML file C#

I am trying to read an XML document. Now I am able to call information if I am reading from "/word/link1" but as soon as I go deeper "buttons/word/link1" it fails to read the InnerText at all. public void rxml() { XmlTextReader…
Marshal
  • 1,177
  • 4
  • 18
  • 30
-3
votes
1 answer

C# how xmlreader read attributes element value

I have tried many way to read the value A180 in

A180

, but fail. I would like to read all values for the below name: class, grade, id conDN, Code, product, serial Attribute Name = name; Attribute value = conDN; i really no…
ghee148
  • 3
  • 2
-3
votes
3 answers

How to get attribute xml without loop c#

i have xml file like this > > and i want to read attribute version from node app without any loop like this while(reader.read()) or foreach…
Alexandr Sargsyan
  • 656
  • 1
  • 6
  • 21
-3
votes
2 answers

how to get xml attribute values by its name in c#

- 011919884841926 - Dial ..... .....
Vinoth Ezhilan M
  • 380
  • 1
  • 3
  • 16
-3
votes
2 answers

c# xml:get all atributes from file,but have add additional elements

I need to get all attributes from xml file with some parameters. Example xml file: class1
user2545071
  • 1,408
  • 2
  • 24
  • 46
-4
votes
2 answers

How to get the String of a XML node in C#

enter code herein the XML document : test text stackoverflow I am trying to parse it and only get the Strings in bar; by using this way: [function where node is the foo] foreach…
Xavier C.
  • 65
  • 8
-4
votes
2 answers

Parsing XML from string

I'm sure this is very simple.. I have this as a string:
Ben Durkin
  • 429
  • 1
  • 6
  • 20
1 2 3
74
75