Click here to Skip to main content
14,302,993 members
XML

XML

Great Reads

by Alex Pumpet
A simple program for compare 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 Waleed Elkot
Reading text from any image using Microsoft Office 2007 OCR

Latest Articles

by Brad Joss
Alter your clipboard contents before pasting to automate tasks
by Greg Utas
Robust applications framework in C++. Includes a static analysis tool and two applications.
by Robert Gustafson
I've created an enhanced version of the Extended RichTextBox created by Razi Syed.
by pdoxtader
Learn how to view a remote machine's file system using your own explorer like window, and transfer files and folders by dragging and dropping in C# using the TcpComm TCP library

All Articles

Sort by Score

XML 

19 Sep 2019U
Robert Gustafson
I've created an enhanced version of the Extended RichTextBox created by Razi Syed.
15 Oct 2018
moneema14
A parser event listener for PDF tables to .NET Dataset object
16 May 2014
B. Clay Shannon
Step-by-step instructions for adding an Async Task to an Android Activity
25 Jun 2018
Clifford Nelson
A way to create a custom derived control with the XAML file attached like a UserControl
18 Apr 2018
Clifford Nelson
I had a situation where a control appearing was significantly affected by the initialization of the UserControls. This behavior fixed my problem.
27 Dec 2018
Alessio Aronica
Generate forms from MVC models in one simple line of code
2 Jul 2019
Lance Roberts
A tray utility for monitoring log files and popping up error messages
19 May 2014
B. Clay Shannon
How to create an Android Activity and its associated Layout file, then invoke (intent) them from another Activity
10 Jun 2014
Anamera
This XSLT will output an Excel worksheet containing a CSV type of record collection in a more usable XML format.
2 Aug 2017
Nikita D. Sinelnikov
Creating a pretty-view XML for web applications (or other needs)
31 Oct 2018
Carsten Breum
Data Virtualization example with a pagesize and async data request
17 May 2010
Rama Krishna Vavilala
I will just make it a little more compact by omitting the Contains method:public static string GetValue(this XElement root, string name, string defaultValue) { return (string)root.Elements(name).FirstOrDefault() ?? defaultValue; }The explicit operators for XElement...
26 Jul 2013
Mannava Siva Aditya
Reading XML data into a DataTable.
5 Jun 2014
Erik Vullings
Generate a PowerPoint presentation, consisting of slides with a title and an image, without requiring Microsoft Office
16 Apr 2015
kingddd
Introducing a new tool to transform trx (mstest results file) into HTML report
23 Jun 2015
MarcusCole6833
A simple program to make an HTML page from an XML file
10 Nov 2015
veen_rp
A simple, step by step tutorial to set up an MS-Office Excel Ribbon, launch your own .NET applications from Excel and interact with the spreadsheet values.
20 Jun 2018
Clifford Nelson
This behavior will select the entire text when a TextBox or PasswordBox gains focus
21 Dec 2018
Member 3471983
Add Filter Sort and Theme to a datagridview
14 Apr 2010
marc9889
2 alternatives  
This is an example of one way to parse an HTML document by using a recursive function. In this example, an html document is loaded from a text file, but the code also demonstrates (in remarks) using a web page as a source file.When the recursive function is called, a conditional statement...
19 Apr 2011
Joshi, Rushikesh
You learn how to create your own Code Snippets and publish them to your Team to use them.
6 Nov 2011
Adel Refaat
A quick example of how to do grouping in XSLT version 1.0
10 Feb 2014
B. Clay Shannon
How to save a collection of objects as XML, JSON, or CSV
1 Apr 2014
sbarnes
Sometimes better isn't, necessarily
25 Apr 2014
Frankxcid
Class that allows you to programmatically create an Open XML Excel spreadsheet
31 Aug 2016
adityave22
This article explains how to write JavaScript code in Atlassian Jira to call external REST APIs and load json data into Jira custom fields
6 Jun 2018
Shao Voon Wong
Performance of Floating Point and Integer Arithmetic has closed gap in modern CPU
24 Aug 2018
Geek2Simon
How to remove Windows service from Service List (not just stop/disable it, but to delete it from the list totally)
7 Dec 2018
Dirk Bahle
Making better use of the available UI space.
18 Feb 2019
Steffen Ploetz
How to realize text copy functionality via inter process communication for your OpenTK based C# OpenGL application running on X11
7 Jan 2011
Paul Schwartzberg
If you have unformatted XML in a string and need to format it for visual presentation, e.g. for sending it to your UI, here's how to do it for Silverlight 4.0.
28 Jun 2012
ROHIT SHAW
It shows how to display a badge notification in Windows 8 metro app
10 Dec 2013
Bruce Yang CL
A way to query the data from Internet
17 Jan 2014
Codes Of Shadows
Header Style Combo Box Drop Down Filter Button
30 Jan 2014
@donis2014
How to configure IIS Express "applicationhost.config" for handler mappings
16 May 2014
B. Clay Shannon
How to quickly and easily change a Layout's header text
15 Feb 2015
RemcoReitsma
This tip shows how you can add an XSD schema in Visual Studio to enable XML intellisense.
19 Nov 2017
asiwel
Construct a confusion matrix or crosstab for binary or multi-level classifier training or validation data in C#
3 Apr 2018
Christiaan van Bergen
How to perform XPath queries on all lower case elements
23 Mar 2019
Martin Vorbrodt
Base64 encoding
24 Mar 2019
Martin Vorbrodt
XML-RPC
31 Mar 2010
Ilka Guigova
Setup: A data from one module is passed into another so that Module 1 takes a (flat) file as input and feeds an xml structure into Module 2. While Module 2 is internal, Module 1 is designed to handle different customer inputs into the system. However, it is not always possible to generate the...
21 Jan 2011
R S Dodiya
By using OPENXML, handling XML is very easy. We use OPENXML to get XML records in table format (rows and column)
29 Jul 2011
Bob Sandberg
How would you do this, if objects included inside one of the serialized objects was an abstract class? E.g.:abstract class Base{ public int x;}class A : Base{ public int y;}class B : A{ public int z;}class SomeOtherClass{ public string...
1 Aug 2011
Daniel Gidman
Serializable Extra Types for .NET 4[^]Does what you are looking for using attributes.
2 Oct 2011
Vishnu Kesaraju
Using LINQ to XML to convert datatables to formatted XML.
12 Jul 2012
PIEBALDconsult
This is an alternative for "PrettyXML (.NET Port)"
31 Jul 2012
HemendraSingh88
Hi, here we will see how to query a DataSet with LINQ(Language Integrated Query).
1 Oct 2012
Jason N. Gaylord
When using a WCF or ASMX web service in ASP.NET, you might find the need to pass back a DateTime object via JSON. However, what you might not realize is that by passing a .NET DateTime object back to JavaScript, you’d receive an “Invalid date” script exception. The data being passe
5 Oct 2012
Bryan Lyman
Generic list wrapper that returns a smaller strongly typed sub-list which modifies the parent-list when changed, without using events
19 Dec 2012
Rajesh Kuramdasu
This article describes about converting an XML string to a HTML table.
21 Apr 2013
emadns
Second tutorial for loading data through code - Sqlite
21 Aug 2013
karlodegrano
A generic HttpContent Reader that can be used to replace FromBody parameter on Http Action
12 Sep 2013
dmgcodevil
Framework for performing aggregation and plain MongoDB queries in myBatis style
3 Jan 2014
Sergey Syrovatchenko
This tip describes the most convenient way of process automation of generating HTML reports for dynamic table-structures and sending them to different people.
27 Feb 2014
B. Clay Shannon
Pass a long string to a Web API method (not as part of the URI query)
24 Apr 2014
Amogh Natu
This tip explains how to call a web method with a POST request using xml request messaage in C#.
19 May 2014
B. Clay Shannon
Simple steps needed to globally change a widget property
21 May 2014
B. Clay Shannon
In which the user is shown how to enclose multiple widgets in a rectangle
30 May 2014
B. Clay Shannon
Add borders to Android widgets, such as EditTexts, to "set them off/apart"
4 Jun 2014
B. Clay Shannon
Wherein the steps to add menu items, and respond to them being selected, is delineated
9 Jun 2014
B. Clay Shannon
A handful of easy steps to enable using names instead of hex vals for colors
11 Jul 2014
MANPREET SINGH
How to read XML files and add them into SharePoint 2010 through Powershell
19 Sep 2014
Dominic Burford
Using FTP with Nant
19 Sep 2014
Dominic Burford
Adding unit testing and code coverage to your Nant scripts
26 Jan 2015
John C Rayan
How to process very large XML files
26 Feb 2015
Mohit Johri
This article will give a brief introduction about WIX toolset that builds Windows installation packages from XML source code with an example
13 Apr 2015
Keerthi_Kumar_N
Configuring the web.xml for any Java/J2ee project using a programmatic approach
27 Jul 2015
Shru37
Modified code from another article to consider field repetitions while converting HL7 message to XML
7 Jan 2016
Sandeep Neela
Platform independent jQuery workaround for legacy “Data Islands”
19 Feb 2016
mbruchet
It is often requested by the customer to import a data file in XML format. It is therefore easier to work in object mode, however, the XML transformation into a pure object might take time to be developed. ExpandoObject provides an answer to this problem ...
22 Jun 2018
Azim Zahir
This is a demonstration of a Torch application built using Android.
25 Dec 2018
Shao Voon Wong
It could be a hacking to crash your program.
11 Jan 2019
Harshit Gindra
Check and request for Permissions in Xamarin Forms mobile application
13 Nov 2013
BrokenEvent
Simple and fast .NET XML parser without using System.Xml
11 Sep 2019U
honey the codewitch
A simple home HTTP server that works across all .NET platforms
29 Jul 2014
dietmar paul schoder
Read rows and cells from an xlsx-file: quick, dirty, effective.
14 Dec 2018
David_Cui
A brief introduction to CrossCutterN tool remade for AOP programming in .NET technologies
16 Mar 2011
Luc Pattyn
How to use PRE tags to preserve formatting, and improve readability of code snippets or tabular data in posts.
19 Oct 2015
Vijay Gill
XML Comparer library in C#
25 Jan 2016
Gunaprasad Shetty
The tip provides the code snippet for inserting a huge XML file with details such as node level, node value, node desc and node child, etc.The snippet provides the solution for recursive reading of node and provides the value of XML nodes along with its value.
9 Mar 2015
sunhui
Integrate .NET Component to your Native MFC Application at runtime
13 Dec 2012
suis
Integrating Google direction and geocoding services using C#. NET code behind.
23 May 2014
Stephan Stricker
A Modbus TCP class.
28 May 2013
akramKamal
Code to serialize/deserialize any object to an XML file.
27 Dec 2017
Bhanu Pratap Singh Rathore
This tip contains easy steps to extract XML data from URLs in VB.NET
18 Apr 2011
Jesse Fatherree
Convert DataSet or XML to JSON using VB.NET
13 Sep 2019U
honey the codewitch
A B-tree, an AVL tree, and a Splay tree in C#
21 Oct 2016
O.Nasri
A good demo to know how you can implement an XSD & XSLT processor using C#
13 Feb 2014
Lothar Perr
Simple and lightweight XML Serialization using tinyxml2
14 Jun 2013
Preetam U Ramdhave
How to develop connection string encryption on the application config file.
19 Mar 2017
Yaseer Arafat
Using Extension Method and JSON Serializer
27 Oct 2014
Israel Gebreselassie
This tip/trick shows you how to edit the web.config file dynamically .
9 Jun 2015
loody
A quick tip about creating a custom view type for Odoo8
8 Sep 2008
cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
13 Aug 2012
Yvan Rodrigues
The web server that is built into Visual Studio 2010 can't serve all MIME types.
22 May 2010
#realJSOP
1 alternative  
Don't reinvent the wheel - use the one that's already on the cart.
10 Jul 2014
#realJSOP
3 alternatives  
Extension methods can help you avoid sticky situations.
11 Aug 2014
RemcoReitsma
Load an XML document and convert it to a dynamic object
19 Jun 2013
jim lahey
Installing .NET 4.5 breaks serialization to XML
17 Apr 2014
SaahilPriya
Creates an XML File, and extends its Node if it already exists
31 Oct 2018
Arun Babu Madhavan
Extension method to throttle multiple Tasks in C#
18 Sep 2013
Er.aruntyagi
Creating XML from Object & populating your Object from XML using one line of code
6 Dec 2013
AdventureDriver
The goal is to clean-up double entries in Windows Media Player playlists because the player doesn’t do that itself. For that, a WPL class has been written, and a program that uses that class.
18 Apr 2012
Naufel Basheer
Convert complex XML to an object using LINQ
20 May 2014
B. Clay Shannon
Learn the easiest way to create an Android Layout, especially when form factors of the target devices are limited
14 Feb 2015
Ifat Chitin Morrison
This tip shows the differences in XML serialization when a serializable class has a combination of [XmlElement] and [XmlText].
23 Aug 2011
b4usat
1 alternative  
How to delete an XML node using its name.
30 Jun 2013
KumarM.NET
Leveraging the benefits of Open XML
22 Oct 2014
George Jonsson
Two ways to serialize and deserialize a property of type TimeSpan to XML
12 Dec 2018
Robert Gustafson
Simplifies working with ToolStrip-type menus and tool bars for MDI parent forms
23 Apr 2014
mohamedkamaleed
Network check v1.0
28 Oct 2011
Andrew Rissing
I would have actually opted to remove the start index being passed in. Then, you can spruce up the calls with extension methods (albeit not necessary).Usage:removeList.AddRange(html.ToString().GetBetween("");Code:public static class StringUtilities{ ///...
5 Oct 2014
Abhijit Ghosh (Subho)
1 alternative  
Creating a Issue in Jira using Rest API and Microsoft XML Core Services (MSXML)
21 Jun 2017
Dankwansere
How to insert an image into an "inline shape" in Word Document using Microsoft Open XML SDK
18 Jul 2012
dreamzlife
A simple way to parse multiple CodeMetrics XML data and generate a summary report.
6 Jun 2013
mohammad amiri
this tip discuss about showing datagridview data to crystal report using c#
6 Oct 2014
Arkadeep De
XMl read, write, edit, search in .NET using C#
8 Jun 2012
Joshi, Rushikesh
How to Generate Sample XML from XSD
19 Mar 2015
Peter T. Ringering
A program that makes editing code comments and XML comments easier.
24 Nov 2014
ashishkumar008
Here, I am going to apply a good look and feel on EditText in Android. For this purpose, we can use image also but I'll use XML here.
6 Aug 2013
pramod.hegde
Converts DataTable to XML, XSD, or HTML using XSLT and C#
21 Feb 2013
A Mahesh
In WCF, you can easily create custom bindings using configuration and custom implementations.
6 Nov 2014
sandeep12jain
WCF Restful Service Authentication without SSL Certificate
15 Jan 2019
Shao Voon Wong
C++11 std::div() Benchmark
14 Apr 2014
Alojzy Leszcz
I've had enough reading WPF tutorials and wanted to test learned skills in a real-life application. As I've always had problems with memorizing LoL items, I thought I could do something about this and kill two birds with a one stone.
6 Feb 2014
Bajirao_
Create a Word document from a docx template
9 Oct 2015
Sotirios Diamantis
You have latitude and longitude coordinates in Excel and you want to display them in Google maps; this simple Excel add-in will let you do just that.
29 Jul 2014
Prasaad SJ
This is a small tip regarding highlighting items and getting the element XML path that is clicked in the Web Browser control.
5 Mar 2019
Peter Sun (247)
Create a C# WPF app to read Twitter tweets and retweets via REST API with grouping related users / friends by categories. As a bonus, tweets can be saved in Azure / Cloud, and viewed in an Azure website.
17 Nov 2014
chiheb-Geek
What's Data Binding: Data binding is the process that establishes a connection between the application User Interface and business logic.
26 Aug 2014
Shah Ankita
PopupMenu and Message DailogBox in Windows 8
30 Sep 2014
Dominic Burford
Versioning your .NET application with Nant and Subversion
24 Nov 2010
liwei.contact
A sample project shows How to print XML documents by a WebBrowser control , with orientation setted programingly.
24 May 2018
Mark Springer
Allow navigation - forward, backward, branching, and loops with a few changes to your existing projects
20 May 2014
B. Clay Shannon
Easily create and hook up values to display in an Android Spinner
14 May 2014
Hadrich Mohamed
This tip shows you how to easily retreive soma data from xml file
8 Feb 2014
B. Clay Shannon
Easily save an object as XML
10 May 2012
VinaJosh
Step by step information on configuring Form Based Authentication (FBA) in SharePoint 2010.
27 Sep 2010
Karthik. A
When dynamically creating XML documents, they appear just like a normal text file. This tip is to add line breaks and indentation automatically (I posted this in my blog a while ago)
5 Apr 2019
Matias Lopez
Displaying XML Files with CSS/XSLT
12 Jul 2012
ednrg
1 alternative  
This is a .NET port of a VBScript utility
31 Jan 2014
VBTheory
Save and load configuration files in both XML and INI with ease
16 May 2016
Md._Mehedi_Hasan
This tip will help you to generate .xml file in AngularJs and ASP.NET MVC5 using XElement of C#.
8 Oct 2013
Praveen Maniyath
Code for implementing a click event for button in Android.
1 Dec 2014
Anurag Prajesh
How to add banner and slideshow in your website with adrotator
7 May 2011
charles henington
using System;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { private Panel panel1; private ComboBox comboBox1; public Form1() { InitializeComponent(); } ...
18 Oct 2011
CodingLover
How to format unformatted XML string easily with LINQ.
6 May 2015
MarcusCole6833
Visual Basic SQL to XML
23 Oct 2018
Matias Lopez
How to open an XML file in JavaScript for Web
9 May 2019
Bloody Chicken
Sometimes, I wanted to know that I did write the right path for getting a single value from XML or JSON string. So, I made a simple program like this.
3 Jul 2019
rohitsies
This article describes an advanced technique and configuration to automatically transform and run your all or selected T4 templates when a project is build.
26 Aug 2011
Ion_tichy
Xsd2Struct is a software for the creation and run-time processing of an external description data structure.
30 Oct 2011
rj45
2 alternatives  
General string parsing techniques
1 Nov 2011
ChunkyStool
namespace ParseTests{ using System; using System.Collections.Generic; using System.Text.RegularExpressions; public static class ExtensionMethods { /// /// Extracts text from a source string that is between two specified tags. ...
29 May 2012
Harsh Gandhi
Generate XML Using FOR XML ; Difference between different modes (AUTO, RAW, PATH, EXPLICIT) of FOR XML to generate XML in SQL Server
24 Jul 2012
SoumenBanerjee
In this article I have tried to cover a few topics like serialization to XML, bulk insertion, etc.
24 Oct 2013
altomaltes
Effortless configuration file added to your existing code
10 Jan 2014
n.massari
Library to send and receive objects between an android client and a web service
27 Jan 2014
Handy Torres
POCO to CAML simplifies creating of CAML queries by using expression trees.
21 May 2014
Mohsen dorparasti
NoAPI is a website that assists web developers to scrap pieces of data they need from public web pages, save them and use them in their web pages
14 Nov 2014
Anurag Prajesh
Add new user registeration information in XML with C#
21 Jan 2015
Bhis
Read XML File and change date contents
22 Jan 2015
Emiliano Musso
A quick method to convert a CSV file in XML
14 Mar 2019
Martin Vorbrodt
How to serialize data to XML
4 Sep 2010
Jaime Olivares
Workaround to mimic VB.net's Xml Literals in C#
8 Jun 2012
CodingLover
Learn how to manage multiple log files in a single application using log4net.
29 Jul 2011
Yoel Schejter
3 alternatives  
A solution presented in C# .NET 3.5 using the latest in LINQ technology.
5 Oct 2018
Awesh Vishwakarma
By reading this trick, you will be able to update your database from DataGridView through external class instead of writing code on each page.
25 Feb 2010
jmix90
You often read on the web that the DependencyObjects are not marked as serializable and that this is a major drawback of them...But there is a easy way to perform a serialization of these object : use XAMLWriter and XAMLReader :public class MyDependencyObject : DependencyObject{public...
18 Jul 2014
Richard Deeming
This is an alternative for "Using Extension Methods To Avoid XML Problems"
29 Apr 2019
David A. Gray
The routines in this library can parse any string that I can throw at it, including Common Name strings read from X.509 Digital Certificates.
5 Sep 2012
yrimal
How to search XML content using LINQ in .NET.
9 Jul 2013
Bhushan W. Juare
The different ways of retrieving XML data from SQL Server.
18 Jul 2019
Deepak_Sharma_20
WPF: Customized/Centering ToolTip with Image
2 Feb 2018
Luca Astolfi
User defined procedure for make an HTML table from T-SQL Select statment
3 Aug 2016
Khunt Suchit
How to Select XML Node by name in C#
28 Jul 2013
Safak Tarazan
A simple application that communicates web service (SOAP).
11 May 2010
Michael Safyan
If you've done a regular search for API reference documentation, most likely you've come across links to very old versions of the API (e.g. links to Java 1.4.2 instead of Java 5 or Java 6), or you've probably come across plenty of links that are completely unrelated to the actual search (getting...
5 Oct 2018
gaurav_rwt
Gridview paging with numeric with first and last button using jquery and code behind
28 Nov 2009
db_developer
xmlns is special attribute. It determines namespace of current element and its children all as well. You do not have to add it to XmlDocument (XmlElement) explicitly. Use method of XmlDocument:public virtual XmlElement CreateElement( string prefix, string localName, string...
30 Jul 2010
Slava Khristich
Parsing and navigating XML tree in Windows Phone 7 (WP7)
15 Nov 2010
Niyazi Yarar
Helps developer to get excel column letter or index
23 Feb 2011
R S Dodiya
Merge DataTable from XML in ASP.NET
19 Sep 2011
marc9889
In response to the request to use a website (instead of a file), the pertinent code is shown below. Note that you will need to replace "www.somewebsite.com" with the website page that you want to capture the source code (HTML, for example) from.Dim webclient As System.Net.WebClient = New...
12 Jul 2011
Paul Schwartzberg
Formatting XML in a string for visual presentation.
24 Aug 2011
George Swan
Can't you do the same thing without the need for a select statement?XElement xElement = XElement.Load(path);xElement.Elements ("Node").Remove();xElement.Save(path);
17 Nov 2011
Gusdor
The above solution made me grin as it helped me solved my serialization puzzle. However, if you have an extensible format with components spread over multiple assemblies, this solution may not pick up all the types.I brute force it as follows:List knownTypes = new...
5 Sep 2012
amitthk
A useful class for persisting your settings to XML config files.
19 Mar 2012
tomjoly45
How to connect an external stylesheet to XML.
9 May 2012
Paul Marques
Simple way to do internationalization on your Windows Phone app.
8 Aug 2012
KinnMirr
Moving data to/from hierarchical data is tricky. This will help.
27 Mar 2013
arsser
Choose the UI language at runtime and using XML to save the infomation.
7 May 2014
Ashish Tripathi
Sharp RepoGen is a simple tool to create repository interface having methods for CRUD operation and its implementing class. Using this tool easily you can generate your repositry class and interface. Code is generated with the help of xml template, so very easily you may change the template to creat