Questions tagged [system.xml]

System.Xml is a set of APIs that provide support for processing XML in .NET applications.

System.Xml is a set of APIs that provide support for processing XML in .NET applications. https://learn.microsoft.com/en-us/dotnet/api/system.xml

101 questions
0
votes
2 answers

XmlTextWriter in xamarin for android and iOS

I have some proprietary code that I am trying to compile in a xamarin project using Xamarin studio for mac. One of the classes uses System.Xml.XmlTextWriter. I am getting the following error: Error CS0012: The type `System.Xml.XmlTextWriter' is…
Jason Ridge
  • 1,868
  • 15
  • 27
0
votes
0 answers

Retrieve all xml data using c#

I am trying to retrieve all my data from an XML file and place all data inside a newly created ArrayList which consists of int, int, string, string, and an array which has int, int, string, string, and a boolean. This is the test data: In my new…
Pedro
  • 1
  • 1
  • 3
0
votes
2 answers

XDocument.load(string uri) throws ArgumentNullException

I get an ArgumentNullException when calling string filepath = @"AppData\TestAppData.xml"; if (filepath != null) { XDocument xdoc = XDocument.Load(filepath); } Here are the exception details. It says, that the…
0
votes
1 answer

External DLL running in Unity behaves differently then when run in Visual Studio

I'm writing some C# to represent nodes, edges, and graphs. As part of that code library, I have some classes to write/read graphs to/from xml. I have a test, in Visual Studio, that creates a graph, writes it to xml, and then reconstructs the graph…
cdhanna
  • 101
  • 1
  • 4
0
votes
1 answer

System.xml not found on windowsphone

I am trying to implement braintree in a windows phone 8.1 app and on Result result = gateway.Customer.Create(request); i get error System.IO.FileNotFoundException occurred HResult=-2147024894 Message=Could not…
burblebee
  • 1
  • 2
0
votes
1 answer

XmlNode.AppendChild fails

I am creating XML with C#. I want to append item to content. I create an XmlNode with CreateItem, but I can't seem to append it to the contentElement. XmlDocument doc = new XmlDocument(); XmlNode contentElement =…
Eleanor
  • 569
  • 1
  • 8
  • 17
0
votes
0 answers

system.unauthorizedaccessexception access to the path ..... is denied

I am running a system.xml.xmltextwriter() method in vb.net and everytime it tries to run i get a "system.unauthorizedaccessexception access to the path (FilePath) is denied." I have been to through this file path giving all folders and the file…
mattisrowe
  • 149
  • 2
  • 14
0
votes
3 answers

MissingMethodException when running application on different computer

I have a problem where I compiled my application on Visual Studio 2010 while targetting the .NET Framework 3.5, deployed it to a client server, only to find it gives me the following error: ************** Exception Text…
0
votes
2 answers

Parsing iTunes Podcast XML in C# using System.Xml

I'm trying to parse a iTunes podcast XML feed in C# and am having trouble. It successfully downloads the feed and puts it into the XmlDocument object (tested). After that, it goes to the for-each line, but never enters the loop. I have no idea…
Kirkland
  • 798
  • 1
  • 8
  • 20
0
votes
1 answer

Reading special field from variable XML File c#

I have got a file called xmlfile.xml: Manfred Fischer 45 There are two problems. First of…
Pekinese
  • 177
  • 4
  • 18
0
votes
1 answer

XSD.exe failing on invalid character - British Pound Symbol

I'm trying to convert a XML document to a XSD via XSD.exe; and it's failing when encountering the British pound symbol (£) as an invalid character. I quick summary of the XML looks like this:
Adam Frisby
  • 358
  • 5
  • 20
0
votes
2 answers

how to read XmlDocument by maximumn attribute to minimum attribute?

I am reading XmlDocument in dotnet/c#, by using System.Xml, i like to read xmlElement by More attributes to less attribute, how to read? can we do this? my example xml file and coding:
saravanan s
  • 175
  • 3
  • 14
0
votes
0 answers

unable to cast com object (msxml) to system.xml object

i want to upgrade my project from msxml6 to system.xml. The msxml component is coming from vb script using interfaces as type object(i.e com_object). Now the problem is when i try to cast this com object to the System.xml component it throwing en…
Kapil Sen
  • 3
  • 1
0
votes
3 answers

Read xml file using System.XML namespace

I want to read the section of the App.config file using my own xml code (not linq to xml): Here's my app.config:
anmarti
  • 5,045
  • 10
  • 55
  • 96
0
votes
0 answers

Update existing code from XMLDocument to XDocument

Good morning guys, I am working on a project where I need to take some code OK a lot of code using the xmldocument classes and make it compatible with silverlight which only supports xdocument (system.xml to system.xml.linq) The question is, has…
Paul Wade
  • 591
  • 5
  • 17