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
1 answer

System.XML and Encoding trouble

I have an application which is using to create XML documents on the example of existing. But that's not the point. Today I noticed that there is an error if the opened file encoding is ANSI. Before that I worked with files UTF-8 and this problem…
pad0n
  • 187
  • 3
  • 17
0
votes
1 answer

Magento Add Event onlick on System Configuration Custom Module Field

Nowhere can I find a definition for which to search. In mymodule namespace/modulename/etc/system.xml I have: example: #000000
Kārlis Millers
  • 664
  • 2
  • 11
  • 29
0
votes
1 answer

Build a Custom Serialization as String in System.Xml.Serialization

Hi guys I have 2 classes like this: [XmlRoot("Config")] public class ConfigClass { [XmlElement("Configuration1")] public string Config1 { get; set; } [XmlArray("Infos")] [XmlArrayItem("Info")] public OtherInfo[] OtherInfos {…
Jonny Piazzi
  • 3,684
  • 4
  • 34
  • 81
0
votes
2 answers

Windows Forms app, exception on start-up: Could not load System.Xml

Update: I have tried using fuslogvw.exe to get logs. But what exactly am I looking for? Sadly, the logs are in Danish which is extremely annoying (Apparently someone thought that translating everything literaly into Danish inside error log-messages…
S.C. Madsen
  • 5,100
  • 5
  • 32
  • 50
0
votes
0 answers

Error in System.Xml

I'm working on an app in C#. This app is running on Win XP SP2 and SP3. It has to be connected to a server via a webService. It works for all our customers, except one... When he wants to log on he has an error : There is an error in XML document(1,…
Nëira
  • 1
  • 1
0
votes
0 answers

C#: When performing XSLT: The process cannot access the file

I'm implementing XSLT using C#. In my working directory, I have data.xml file.xsl, and I want to apply the XSLT defined by file.xsl on data.xml, in order to get data.html xslt.cs: using System; using System.Xml.Xsl; class XSLT__ { static void…
Mugen
  • 8,301
  • 10
  • 62
  • 140
0
votes
1 answer

XPathNavigator.SchemaInfo is null after navigating in Mono

I am using C# with Mono, and I want to navigate a XML Schema validated XmlDocument using XPathNavigator. The point being as I traverse the document I can get the XML SChema information for each element via the XPathNavigator.SchemaInfo property. …
Dave
  • 33
  • 4
0
votes
1 answer

System.Xml reference error

I used HtmlAgilityPack in a project and got error that System.Xml 2.0.0.0 was not referenced. I added it from Silverlight folder and it worked. But now I get the same error but it wants version 2.0.5.0. If I add it then it works, but HtmlAgilityPack…
fanboy555
  • 291
  • 2
  • 7
  • 20
-1
votes
1 answer

XmlDocument.Load(Stream) times out on 27KB of data

I have the following code to load XML var ms = new GetXmlMemoryStreamFromSomewhere(); ms.Flush(); ms.Position = 0; // Build the XmlDocument from the MemorySteam of (usually UTF-8) encoded bytes xmlDocument.Load(ms); My stream is 27011 in byte…
fahadash
  • 3,133
  • 1
  • 30
  • 59
-1
votes
1 answer

Difference between CreateAttribute and setAttribute c#

I see that there are different ways to create an xml, add nodes and set attributes for them. But i would like to get the difference between these two: XmlNode infoNode = xmlDocument.CreateNode(XmlNodeType.Element, "INFO",…
user2896152
  • 762
  • 1
  • 9
  • 32
-3
votes
1 answer

How to replace sub elements in xml files using c#

I have 2 xml files: File 1 ... File 2
1 2 3 4 5 6
7