Click here to Skip to main content
15,888,351 members
Everything / Programming Languages / XML

XML

XML

Great Reads

by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
by shunninghuang
CPS1 emulator, ROM hacking
by David Rogers Dev
Learn how to load related entities using the Entity Framework with simple examples
by Thomas Weller
Demonstrates how to run Python scripts from C#

Latest Articles

by Shao Voon Wong
C++ SAX library to simplify XML parsing
by Shao Voon Wong
Tutorial on a cross-platform C++ XML DOM library
by Macabies Gilles
An easy-to-use filterable, multilingual custom DataGrid control for managing and filtering data for your WPF applications
by Ștefan-Mihai MOGA
A look at the URLDownloadToFile function and architecture of IntelliLink

All Articles

Sort by Updated

XML 

U 28 Apr 2024 by Shao Voon Wong
C++ SAX library to simplify XML parsing
U 26 Apr 2024 by Shao Voon Wong
Tutorial on a cross-platform C++ XML DOM library
N 24 Apr 2024 by OriginalGriff
First off, don't call it an "XML script" - the word 'script' implies it's directly executable or interpretable, like a python script file, or a Windows batch file. XML isn't: it's a complex hierarchical data transfer format which has just 5...
N 24 Apr 2024 by sa ku
How to use divide symbol in xml script? What I have tried: I have tried / and ÷ and ÷ but i got error == symbol error.
N 24 Apr 2024 by sa ku
source table ---> payment source_column ---> invoicenumber datatype --> varchar Source Column Desciption --> Invoice Id Migration Rule ----> If the referenceid is NULL: Reference Id from the Invoice table, Link the payment to the...
8 Apr 2024 by VortexV7
The chats/messages are not appearing on my app's chat windows but when I have checked my firebase database it is showing there properly. Here is the code please look into it. ChatWindow.java package com.vortexv.vconnect; import...
13 Mar 2024 by Member 7513082
I want to trim the space in the xml string excluding the xml namespace header in c#. My xml string is as below. I want to trim the xml node values alone excluding the namespace header (getInstallmentHistoryReply...
12 Mar 2024 by OriginalGriff
Two things - firstly, you need to remove the from your xml or it will not process before you even start to "trim" it. Secondly you cannot blindly remove all spaces: if you look at the string you generated:...
5 Mar 2024 by Macabies Gilles
An easy-to-use filterable, multilingual custom DataGrid control for managing and filtering data for your WPF applications
20 Feb 2024 by Ștefan-Mihai MOGA
A look at the URLDownloadToFile function and architecture of IntelliLink
18 Feb 2024 by shunninghuang
C# arcade emulator, ROM hacking
9 Feb 2024 by Chandru BK
This article will assume you have basic knowledge of C# and Xamarin Forms and shows how to implement the Xamarin Form Validations using simple Data Annotations applied on the models.
8 Feb 2024 by Petrov Vladimir
Build up our own AVI editing application and explore some fun techniques using simple code additions
26 Jan 2024 by Gerardo Recinto
In-memory B-Tree sorted dictionary
18 Jan 2024 by Lance Ford
Step-by-step guide to enable an ASP.NET web application to override date, time, currency and number formats.
9 Jan 2024 by Ammar Albush 1997
Network Sniffer and Analyzer Program written in C# .NET 6.0 Windows Form (Sharppcap, PacketDotNet)
3 Jan 2024 by mickohan
Friends, I am able to unmarshall signature block for most of the cases with below code. However its failing to unmarshall for STRTransform case. Can someone guide me? Exception: Exception in thread "main" javax.xml.crypto.MarshalException:...
11 Dec 2023 by Suhagkumar Vamja
The article discusses the challenges faced by businesses in releasing mobile applications quickly and the importance of faster time to market (TTM)
21 Nov 2023 by Federico Di Marco
Create quickly VPN connections in Windows according to a XML configuration file
18 Nov 2023 by Erik Drent
A simple POCO mapper for EPPlus
5 Nov 2023 by OMG_Live
I tried to read the data from a XML file. And it's working fine with one project. But the same code is not working with other project which could not figure it out... for the difference. With one project, I am able to read the content properly...
2 Nov 2023 by Mike-MadBadger
This is an alternative for "Pick Your Enumerator & Me.Understand Yield and IEnumerable (C#)"
1 Nov 2023 by MichaelEriksen
I am trying to get a list of nodes as a result of a XPath in JavaScript, but do not know how to do it. Unfortunately, I have tried a lot without any knowledge of how to do it - the alert does not come. So how to get a list of nodes from...
31 Oct 2023 by M Imran Ansari
To retrieve a list of nodes using XPath in JavaScript, you can try using the document.evaluate() method. This updated code snippet will select all cac:ContractDocumentReference nodes with cbc:ID equal to '234' from the provided XML. Adjust the...
28 Oct 2023 by M Imran Ansari
When dealing with XML files, it's crucial to ensure that the structure and the data of the XML file is consistent and the data you are trying to access exists in the same format across different projects. It's possible that the XML file structure...
27 Oct 2023 by Member 7513082
I want to take the sum of the amount node (node name-amt) in the below XML for the due date node coming as (2023-05-03) (node name-pmtDueDate) with Type node value as "Principal and Pass thru" (node name- type)in the below XML updated in C#. ...
26 Oct 2023 by OriginalGriff
We can't answer that - partly because as Richard and Dave have said, you didn't actually ask a question, or show any effort, but mostly because there are too many ways to do it, and we have no idea what you have done so far or how our solution...
19 Oct 2023 by Alex Markov 2023
This is a repost from StackOverflow. Here is the problem. I have a .config file in XML: value COM1
18 Oct 2023 by M Imran Ansari
Have you tried to get the section with XDocument? You can try the below code to get the desired section: // Replace config_file_path with the actual path to your config file. XDocument doccs = XDocument.Load("config_file_path"); XElement...
9 Oct 2023 by OriginalGriff
Compiling does not mean your code is right! :laugh: Think of the development process as writing an email: compiling successfully means that you wrote the email in the right language - English, rather than German for example - not that the email...
9 Oct 2023 by Graeme_Grant
Still unsure which line is throwing the error... The full error message with stack trace would identify where the error occurred. Have you set a breakpoint and check the line with the error? At a guess, report.InCorrectMapping &/or...
9 Oct 2023 by musfirah hamid
I have 2 accounts one is confirm and other one is unconfirm. whe user click on reportComparison button, it shows data of both accounts. if user think data is wrong he can change it from available dropdowns,dropdown is also on the same page. and...
3 Oct 2023 by Marco Giglio
I created this code (I'm only showing part of it) where I read an XML file and display it in a datagridView. In this, the attribute (table:style-name="ce215") changes the background of the single cell of the datagridview to yellow, but I can't...
2 Oct 2023 by Graeme_Grant
This is a common question with many answers on the internet. A simple Google search will give you many solutions: winform datagridview cell background color - Google Search[^]. Also there are related questions with solutions to the right of this...
2 Oct 2023 by Marco Giglio
I'm learning how to convert an ODS file into a DataGridView. I've already learned how to open the ods file and extract the XML file. I can't figure out how to take any data with texts and turn it into rows and columns on a DataGridView. I just...
2 Oct 2023 by Marco Giglio
I'm trying to read attributes of a XML node (another system)... This is an XML of example: ...
2 Oct 2023 by Marco Giglio
I'm trying to understand how to insert an XML file into a TreeView, not only the nodes with the texts but also the attributes. In the example XML file, I can display with my code (take from Web) only "Actor" and "Type", while instead I would also...
28 Sep 2023 by Sergey Alexandrovich Kryukov
MSBuild is a flexible tool, it can be used not only for Microsoft toolchains, and it can even be used for non-programming chores
26 Sep 2023 by Graeme_Grant
This is a very common question that you can google: winform how to add children to parent nodes on a treeview - Google Search[^] which gave me this: adding child nodes in treeview [solution] - StackOverflow[^] ...
25 Sep 2023 by Richard MacCutchan
You just need to build the DataGridView Control - Windows Forms .NET Framework | Microsoft Learn[^] columns and rows, and add the data that you want to display.
24 Sep 2023 by Graeme_Grant
Here is a different way of doing the same thing [in C#]: string xmlString = @" ...
24 Sep 2023 by Dave Kreskowiak
This is not that hard: Dim doc As XDocument = London ...
24 Sep 2023 by Richard MacCutchan
You were given the answer at How read name of attribute of XML nodes (not value)![^]. You just need to adapt that code to get the names into the MessageBox.
22 Sep 2023 by Valery Possoz
Hello, you could be using the class XmlNode see here: XmlNode Class (System.Xml) | Microsoft Learn[^] Refactoring a bit your code like that: While reader.Read Dim lettura = reader.NodeType Dim valueA As...
22 Sep 2023 by Marco Giglio
Hello, I'm trying to get names of attributes nodes of an XML file..i'm able to read nodes and attributes value but not names. In this xml example: - -...
22 Sep 2023 by Brian Aberle
XMLFoundation is the fastest XML Parser available. It is also a framework foundation for an application that uses XML to enable Object-XML mappings and Application Layer binding to XML Data objects.
20 Sep 2023 by Javad Taheri (drjackool)
Show or hide, reorder, save and restore list view column headers
15 Sep 2023 by optiklab1
I demonstrate with an actual implementation that well-known algorithms BFS, DFS, Dijkstra, and A-Star are essentially variations of the same algorithm.
14 Sep 2023 by headshot9x
I have a file, the contents in the file look like XML. So, I don't know I can parse the content in files and binding data to DataTable. ...
22 Aug 2023 by Richard MacCutchan
You could try the easy way: DataTable.ReadXml Method (System.Data) | Microsoft Learn[^].
19 Aug 2023 by itsathere
I am using ASP.NET Core 5 for API and it's working fine on the localhost but while deploying on a subdomain(GoDaddy shared server), it's not working and I am trying to find a solution for the same since last week. If anyone has an idea, please...
18 Aug 2023 by Member 16074055
This is several months late but might help someone in the future. From the two web.configs I notice you went from an InProcess to OutOfProcess hosting model. I did the same thing and got a very similar result. For me it threw the error waiting...
26 Jul 2023 by Larry Chapman II
The following XML document is stored in an object called "x": Tove Jani Reminder Don't forget me this weekend What will each of the following...
26 Jul 2023 by Richard MacCutchan
The document.write statement is part of the HTML DOM, and nothing to do with XML. XML is merely a useful way of formatting data for transmission between computing systems or applications. So it seems that you are mixing two different systems...
26 Jul 2023 by Larry Chapman II
Okay so, as far as I've come along this is essentially what I'm trying to do here: something else should be showing var parser, xmlDoc; var text =...
25 Jul 2023 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
8 Jul 2023 by Raul Otaño Hurtado
This article shows a simple way of interpolating a set of points using Bezier curves in WPF.
2 Jul 2023 by CodeWraith
I am writing an emulator for a small 8 bit computer. It's a kind of prototyping and debugging tool for the real thing I have on a breadboard. It already can emulate highly timing sensitive code and give me information about what is going on...
2 Jul 2023 by CodeWraith
Well, I have found a solution. It's a little bit of work, but it will do the job. As I now see it, there are two concerns that should be separated. One thing is the configuration, which I want to be serializable, the other thing are the emulator...
19 Jun 2023 by Graeme_Grant
When having issues like these, it is always a good idea to create a test project and check what is happening. Excel Interop - Microsoft Learn[^] especially. So, I have created a spreadsheet manually and put a numeric value in a cell. Then I...
19 Jun 2023 by LiterallyGutsFromBerserk
I am making a Winform application where I export my datagridview to excel. However, when I do it, it doesn't retain the formatting,despite the existence of a line to do so. Here is my code : string fileName; SaveFileDialog saveFileDialog1...
19 Jun 2023 by Richard Deeming
Quote: worksheet.Cell(i + 14, j + 1).Value = dataGridView2.Rows[i].Cells[j].Value?.ToString(); ... worksheet.Cell(i + 14, j + 1).AddConditionalFormat().WhenLessThan(1).Fill.SetBackgroundColor(xlColor); You're setting all of the cells to...
3 Jun 2023 by FatalError0x4c
I can't simply set the x:Name attribute of the ComboBox because there are more than one. I also don't know how to get a specific ComboBox from code, to set/get the Text property. Here is a simplified version of my XAML file: ...
13 May 2023 by ToughDev
Exploring PCx86 - IBM PC emulator written in JavaScript
8 May 2023 by Ridhdhi Vaghani
I have built this WPF application in .NET Framework V4.8. And helixtoolkit.dll and helixtoolkit.WPF.dll are both dll V2.23.0. Now converting this WPF application to .NET Framework V4.5 I get the following error. Even though all the namespaces...
8 May 2023 by Graeme_Grant
You need to check the documentation. Rolling back to a previous version can introduce these types of issues. Contact the author(s) of the library for more information: Issues · helix-toolkit/helix-toolkit · GitHub[^]
8 May 2023 by Dave Kreskowiak
Why on earth are you going backwards in .NET versions? If you rollback the version of the .NET Framework you're using, you're going to have to possibly use older versions of 3rd party libraries you're using along with it, like that HelixToolkit...
4 May 2023 by JayWalks
A walkthrough of code solving a real world problem
25 Apr 2023 by Rajesh waran
Hi, I need to get the parent element names from the below sample xml. When i tried the below query, i got all the element name including all the child names too. But I need only the parent element name from the xml. DECLARE @xml xml = '...
25 Apr 2023 by Richard Deeming
Filter out elements that don't have child elements: FROM @xml.nodes('//*[*]') Set selection predicates in location path (SQLXML) - SQL Server | Microsoft Learn[^] Based on your output, you also want to filter out the root node: FROM...
22 Apr 2023 by Ben McNamara
Container classes much faster than STL.
10 Apr 2023 by LB2371
I have the following XML string: Php Server Side JavaScript ...
10 Apr 2023 by Richard Deeming
Try: $xml = simplexml_load_string($xmlData); foreach ($xml->language as $lang) { $json[] = $lang; } var_export(json_encode($json)); Demo[^]
10 Apr 2023 by Vladimir Kniazkov
The more perfect description of the creation the Splash and the Login forms with full source code
15 Mar 2023 by vor_zakon_developer
I am new to XML. I want to read the following XML. Please help me on how to read the below XML in Java.
12 Mar 2023 by Keith Barrett
A C# library for use in physics and engineering calculations
9 Mar 2023 by Michel van der Laan 2023
I have an unzipped xlsx document that consists of two xml documents, sheet1.xml and SharedStrings.xml. Both have a xmlNameSpaceManager : Dim workSheetManager As New XmlNamespaceManager(workSheet.NameTable) ...
7 Mar 2023 by vor_zakon_developer
Performing the conversion from XML to Java classes using JAXB statement.But I am facing some problems. That is, it can successfully convert the values in the attributes in the XML tag.But I can't translate the xml tag's own values. For example I...
1 Mar 2023 by Stephane Capo
Kigs framework is a multi purpose, cross-platform, free and open source C++ framework. This article will focus on the main base class of the framework: the CoreModifiable class.
27 Feb 2023 by Jo_vb.net
This article and the demo are about getting started using the MVVM Toolkit and some self-created interfaces / services for MessageBox and some dialogs.
24 Feb 2023 by Philippe Cayouette, Sebastien Gibeau
Solution using smart pointers' custom deleters
24 Feb 2023 by Member 12926744
Hi , I am trying to select an xml node without parent node , but am not getting the value . Someone please help . What I have tried: XmlNodeList nodes = root.SelectNodes("//sdnDetails"); foreach (XmlNode node in nodes) { ...
23 Feb 2023 by Richard Deeming
Your XML document has a default namespace of "http://tempuri.org/sdnList.xsd". Unfortunately, the System.Xml classes don't support default namespaces. Instead, you'll need to use an XmlNamespaceManager to define an alias for the default...
6 Feb 2023 by shunninghuang
Software named M1.NET which shows the details of decrypting arcade game audio
15 Jan 2023 by lalit.mca2006
Hi , I have xml as below , want to read and assign it into list/dictionary 1 abc1 xyz1 ...
15 Jan 2023 by Graeme_Grant
An almost identical question was asked and answered 2 days ago. Rather that repost the same answer here, please click on the following link: View a XML file in xdocument and linq[^]
13 Jan 2023 by John Ertle Jr
This gives me a "Null Reference". The XML file exists. Added reference "using System.Xml.Linq". var xmldoc1 = XDocument.Load(Server.MapPath("~/xml/VSOP87-J2000.xml")); var elements1 = from data in...
13 Jan 2023 by Graeme_Grant
You're not using the System.Xml.Linq namespace. Here is the official documentation: How to find descendant elements - LINQ to XML | Microsoft Learn[^] This is an example based on the documentation link above: using System.Xml.Linq; XDocument...
13 Jan 2023 by OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself. Let me just explain what the error means: You have tried to use a variable, property, or a...
12 Jan 2023 by Codes DeCodes
I am consuming SOAP services from my application and I get following XMl content as response consuming .wsdl file in my code. Toyota Fortuner Japan ...
7 Jan 2023 by John Ertle Jr
I am trying to load an XML into C#. There needs to be a "using ?????" for this to work. How do I do this. xmldoc1 = XDocument.Load(Server.MapPath("~/xml/VSOP87 - 1 Data.xml")); elements1 = from data in...
7 Jan 2023 by OriginalGriff
Thirty seconds with Google and the Microsoft documentation would have told you that XDocument is part of the System.Xml.Linq namespace: XDocument Class (System.Xml.Linq) | Microsoft Learn[^] So ... is using System.Xml.Linq; what you were...
7 Jan 2023 by Alexander Chernosvitov
Implementation of a polynomial time algorithm searching Hamilton cycles in an undirected graph
5 Jan 2023 by vblover Programmer
Load Menu from Resource-Only DLL (created by VC++) and Set for Form As MainMenu by API Functions.
4 Jan 2023 by Alexey A. Popov 2
A simple implementation of Miller columns (cascading columns) control
1 Jan 2023 by Member 14817640
Hello, I am trying to retrieve the name attributes of each user node in python on the XML file below. For that, I looked for which library I could use and I came across ElementTree. But testing some examples from the documentation I found below,...
1 Jan 2023 by Graeme_Grant
I'm not familiar with python, so I did a quick Google Search to see what information is out there: xml parsing in python - Google Search[^]. There is a lot out there to help you. This one caught my eye: XML parsing — The Hitchhiker's Guide to...
27 Dec 2022 by Sushma Prasad 2022
//screen size int screenHeight = getScreenSize(); ViewGroup.LayoutParams params = mBinding.layDetailsPopupComplete.getLayoutParams(); int layoutHeight =...
25 Dec 2022 by Stiv Ostenberg
I am working on an XML Schema. I want the XML to contain multiple instances of "Manifest Entries" each containing a series of "Entries". In my application I want users to be able to enable or disable certain sets of "Manifest Entries" (they are...