Click here to Skip to main content
15,899,754 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 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.
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

All Articles

Sort by Title

XML 

29 Aug 2012 by Behnam Mohammadi
this is my code but compiler occures error when i use "&" in XSL fileplease help me. shownews.aspx?mode=2&id=
29 Aug 2012 by Behnam Mohammadi
shownews.aspx?mode=2&id=It's True
19 Jul 2010 by Gregory Gadow
I am redesigning my company's website. Because so much is getting rewritten, I decided to upgrade from .Net 2.0 to 3.5 (the most recent version we have.) Since the change was made, I have been getting a persistent warning in VS 2008: Errors occured while compiling the Xml schemas in the project....
4 Nov 2005 by eug_acc (Eugene Akimov)
A photo images gallery browsing template - CatalogView style.
16 Oct 2006 by azharkhan
This article provides the steps to solve the "Unrecognized Tag" problem for an Atlas control.
29 Mar 2013 by larssy1
I've started to work on a private project. However, in the first stage already faced a problem.The returned data is in XML format (not that bad, but takes alot of effort to parse to usable objects)The remote server doesn't accept any ORIGIN except for himself, so the browser throws the...
30 Mar 2013 by Sergey Alexandrovich Kryukov
The methods $.ajax, even less $.getJSON are unrelated to XML. You use Ajax to download some data, then post it as XML, as you correctly put it.Hard or not the parsing is, you have to do it; "usable objects" don't parse themselves. :-)Here is how you do it with jQuery:...
29 Mar 2013 by larssy1
This is not an actual solution for my problem given. But it is a way to bypass the origin using PHP.In my javascript, I've requested my PHP code using the following:function Communication () { this.global = new Global(); this.allowedParameters = ["Character"]; ...
15 May 2019 by R Harshal
Hello Everyone,I am getting the below error 'I dont want to remove...
15 May 2019 by scontra
instead of checking for every possible combination, use special methods to encode string to html (like System.Web.HttpUtility.HtmlEncode() in .Net). Search and change any special code it finds to HTML equiv. System.Web.HttpUtility.HtmlEncode("x
7 Jul 2011 by SRIRAM 2
Hi, Here I wrote a function ReadXML().This function reads XML file and returns a string.The string contains all the XML file nodes values to build SQL query dynamically. Any way My code is working. Is this right way? Can you please suggest me the unnecessary code(loops...) in this function, So...
7 Jul 2011 by Christian Graus
I don't see why you need a dictionary and can't just build your string as you go, perhaps even as you go through the second loop. I also think you can select Attributes("Source").Value to get only the value, and not have to strip the strings.
15 Jan 2013 by Gary Heath
Hopefully somebody can tell me what I’m doing wrong … I’ve never used an XML file before, so I’m obviously misunderstanding something ... This XML file : E:\Newsletter Templates (Email)\ ...
15 Jan 2013 by Sergey Alexandrovich Kryukov
Please see my comment to the question. I am not sure that you show the same very file which causes the exception. Otherwise, how to explain your indentation in second line?The code style you are using should not be used anyway, but I understand that you maybe just experimenting.This...
22 May 2014 by Naomi Kanazaki
Hello, I have a question...1) I am using Visual Studio 20132) I am using ASPX C#3) My chart is in SWF4) my files are banks.aspx , banks.xml , banks.xslt and banks.aspx.csEverything was OK before I used xslt to make my data from xml in ascending order..I have done all I can to make...
22 May 2014 by Naomi Kanazaki
Here is my banks.aspx.cs file, http://pastebin.com/raw.php?i=CzSbja23
22 May 2010 by #realJSOP
Don't reinvent the wheel - use the one that's already on the cart.
6 Apr 2010 by TheGreatAndPowerfulOz
The following is far easier to understand and use than the Outlaw's tip (IMHO).text = Regex.Replace(text, "screen_fadetimeout=\"[^\"\']+\"", "screen_fatetimeout="99");It has the following advantages:1. It is one line of code2. It is easier to read3. It is faster (note: XmlElement...
6 Jan 2009 by carlos@takeapps
A working implementation of a REST service in .NET 2.0.
20 Aug 2014 by Sandeep sunku
This article explains the boot strapping process of .NET Application.
17 Oct 2019 by Changqin Liu
C# framework integrated with spring.net and ibatis.net
2 May 2006 by thomas_tom99
An article on a .NET based add-in/plug-in framework, with dynamic toolbars and menus.
19 Mar 2015 by Peter T. Ringering
A program that makes editing code comments and XML comments easier.
9 Nov 2021 by Member 12660776
Programmatically Adding New ConfigurationSectionGroup Corrupts Declaration Section With Multiple Group Declarations.
27 Dec 2006 by Anil Kr. Sharma
22 May 2009 by logicchild
An article with a focus on object serialization.
30 Jan 2007 by TylerBrinks
How to call absolutely any .NET code from your Vista Sidebar Gadget
3 Mar 2008 by Samuel Davidson
Customizable .NET poll control.
12 Oct 2009 by jhillman
A .NET Regular Expressions Find and Replace add-in for Visual Studio 2008
25 Oct 2015 by Greg Nutt
This is a VB.NET Version for ".NET Remoting Events Explained"
26 Jun 2003 by Daniel Ang Chee Meng
This article is meant to be a step by step guide to give its reader a gist of .NET Remoting. This tutorial guides the reader to set up a fully functional chat program.
21 Apr 2013 by emadns
Second tutorial for loading data through code - Sqlite
5 Jul 2012 by Mario Ghecea
This article describes the technique I used to ingest large text files to create an e-book publishing platform on the Android Market
26 Mar 2016 by Amit Kumar Tiwari
.NET to Hadoop connection using Keytab file
20 Jan 2005 by SuperJason2k
A .NET DLL and sample application that interfaces with UPS's XML API to retrieve tracking information. You can also use it to generate an RSS feed..
28 Oct 2005 by David van Leerdam
An article describing a ScheduledTask class for writing a WebScheduler application, for example a Windows Service.
22 Jul 2005 by gokselm
Provides samples for XML and SOAP serialization using C#
20 May 2002 by James T. Johnson
A settings class that can be used to store values in an XML document
29 Oct 2010 by BlackCat_RU
Hi.I have xml files that look like
29 Oct 2010 by E.F. Nijboer
I think it would get easier and more efficient when using a XmlReader instead of XmlDocument. For handling the namespaces you would need to do more with the XmlNamespaceManager. You could remove the namespaces for examples. Have a look how to control those...
23 Mar 2010 by Eunge
The article introduces how to easily develop business solutions in RapidWebDev through developing a product management system with the special requirement step by step.
24 Aug 2018 by simonp_ca
How to remove Windows service from Service List (not just stop/disable it, but to delete it from the list totally)
16 Aug 2007 by Volynsky Alex
Part 2 in a series of articles on a two-player mathematical game of strategy
1 Apr 2019 by veen_rp
Smooth a 2D polyline through interpolation (Catmull-Rom) or approximation (Chaikin)
10 May 2017 by Raghavendra Hosad
2D DFT for Color Image - GUI implementation
29 Jan 2019 by Zuoliu Ding
A discussion on some basic practices highly recommended in Assembly Language Programming.
28 Apr 2018 by Member 12804059
I am sending a request to external API from my application using HttpWebRequest and HttpWebResponse. Whenever there is an error in XML request due to some wrong values passed in XML nodes, then there is a 400 Bad request error response and the error message is "There is an error in XML document...
2 Mar 2015 by ManojMurali
Hi friends, While iam deleteing a file in gridview (websited hosted) i cant able to delete the file.its saying 404 - File or directory not found.but in locally i can able to delete.Pleas help me guys..string path = Server.MapPath(PhotoPath +...
2 Mar 2015 by nocturns2
Does your application have permissions to perform transactions on the target folder? Most hosts provide a way to set folder permissions, such as read, write, read/write, read/execute, etc. Check the permissions for the folder and see if they need to be modified. While your user account might...
2 Mar 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question and also remember one more thing: '~' in the path used as an argument to MapPath is the root directory set up for your site, not your host's file system root. And normally you cannot access any files outside your site's root, as your ASP.NET code is executed...
2 Aug 2020 by Evgeny Pereguda
Clone of PCSX/PCSX2/PPSSPP emulator for Windows 10 on WPF/C# with "touch" control
11 Jan 2006 by Petr Palas
Did you know there’s an easier way how to create dynamic web sites? Learn how Kentico CMS for ASP.NET will increase your productivity and help you win more clients.
18 Oct 2006 by awseditor
This article is a simple, step-by-step guide for those who have ideas and want to quickly implement them. We’ll use code to demonstrate how easy it is to build an application on Amazon S3. We’ll also highlight questions that you may ask before releasing an application.
23 May 2007 by Petr Palas
What is a content management system? Does it really work? Why should I use it? How does it help me? This article answers the most common questions developers ask about content management systems (CMS).
11 Jul 2011 by Vishwanath Narayanan
This article will discuss about the real world problem and then we will see that how it can be resolved using JAXB.
23 Jun 2010 by rudigrobler
7MC Gofer is a Windows Phone 7 based remote control for my Windows Media Center.
4 Jan 2009 by tomkettering
Happy New Year,Strange one to start the year off, any help would be appreciated.I have a Winform Project calling a web service.   passing in an XML string.When I pass through my XML to the webservice, it works fine and gets inserted into the...
5 Jan 2009 by led mike
tomkettering wrote:the XML the dataset does not create correctly? "does not create correctly" means what? The following C# produces the email address as expected.string sxml = "hello@mymail.com";DataSet ds = new...
8 Jan 2004 by dzzxyz
This application demonstrates how to Create, Train and Test an AI Chatbot.
11 Jan 2015 by Sergey Alexandrovich Kryukov
Please understand that we cannot answer the questions "how to make the application X", by two reasons: you don't describe all the specs, 2) it would be equivalent of actually writing such application. You need to ask more specific, answerable questions.—SA
10 Sep 2015 by SrgjanX
first of all, i need to finish this really fast so i dont have a time searching on google, so if there is anyone for quick help, this is it:i have this little xml file, 75
10 Sep 2015 by Sergey Alexandrovich Kryukov
You are doing it wrong. Your document contains only one element, "volumes". XML allows only one root element, by the way.It's not clear what you mean by "changing value". Where? If your need to change the value in the file itself, you have to parse the file and write it again, with the...
10 Sep 2015 by Matt T Heffron
With your given structure, try something like:var element = xdoc.Elements("volume").Single(v => v.Attributes("name").Any(a => a.Value == "vol2"));This probably is not particularly efficient!!!BTW: if there is no element with name == "vol2" the .Single will throw an exception![Edit:...
10 Sep 2015 by Maciej Los
Try this:var element = xdoc.Descendants("volume").Where(x=>(string)x.Attribute("name")=="vol2").FirstOrDefault();Complete LinqPad code:string xcontent =@" 75
27 May 2014 by uplusion23
Hey there. I've been struggling with developing for a few days now. Caught in a loop, because I'm always tired due to a busy schedule, and not concentrated, so thinking has been difficult. But I have a datagrid I want to programmatically populate. The program signs into a server, and gets a list...
27 May 2014 by Mycroft Holmes
You need to bind the ItemsSource to the zList
5 Jul 2014 by Cenkay Vergili
Hello , I've been trying to change XML node's innertext from a WinForm by using C# .MessageBox shows the "needed". I've got no idea why It is not changing the xml file.It is not giving any exceptions. private void btnUpdate_Click(object sender, EventArgs e) { ...
5 Jul 2014 by Thomas Daniels
If you change a value, it doesn't save the file automatically. If you're ready updating your file, save it using the Save method:private void btnUpdate_Click(object sender, EventArgs e) { XmlDocument doc = new XmlDocument(); doc.Load(@"users.xml"); ...
8 Feb 2018 by LubinLew
The xml example, the lang attribute contains single quote and double quotation marks at same time What I have tried: I write a C program, but it prompt me that XPath error : Invalid predicate...
8 Feb 2018 by Jochen Arndt
You have to use character references or entities (List of XML and HTML character entity references - Wikipedia[^]). In your case it would be: char lang[] = "'"word"; You can also write a function to do that: // Or use boost::replace_all void replace_all(std::string& str, const std::string&...
1 Mar 2016 by Luiey Ichigo
Hi all,I have a problem on client kiosk. On my laptop, when the program is run, a greeting's video will appear and play (if file is exist on App_Startup).Currently on client's kiosk, the video is exist but media is not play instead on MediaOpened, it goes to MediaFailed with exception...
18 Feb 2014 by Member 10409838
I am hoping someone has dealt with this issue and can get me started. I have a client that sends me an xml file with every job that they have in their system every Thursday. I have a java program that parses this file and creates a single xml file for each of the jobs. This is running between...
22 Jun 2005 by Douglas M. Weems
[Obsolete]Capture whole web pages as a single image using C#.
12 Sep 2014 by Gihan Liyanage
http://support.microsoft.com/kb/307548[^]
3 Oct 2013 by WhiteTulip
Hi! I was trying to customize my ribbon too in ms access 2007, but i accidentally misspelled some XML code and got an error, i had to delete USysRibbons table and reset previous ribbon, then i made another USysRibbons table and wrote some xml code in RibbonXml column. But funny enough is I still...
3 Oct 2013 by codestar007
Unknown-Namespace-Error-t14760...
18 May 2011 by Brian C Hart
I'm parsing an XML file and its values may or may not be Base64-encoded. I'm reading an XML file with XmlReader and then writing it back out to an output file (after I've fiddled with the values of some of the elements). If the input file was Base64-encoded, the output file needs to be...
18 May 2011 by EscKey2004
Converting Base64[^]Determine If A String Is Base 64 Encoded[^]
18 May 2011 by Sergey Alexandrovich Kryukov
It is theoretically impossible to tell if the data is Base64 or not. This format does not have any indicator of the format, and for a good reason. The whole idea of format detection is wrong and cannot be strictly implemented. In all cases, you need some meta-data.For base64 conversions use...
27 Jul 2010 by danhi
While it's not valid XHTML, lots of XML still use the construct. But when I use XmlTextReader to read this element, I get a nodetype of Element, with no indication that it's also and EndElement. Is there any way to deal with this?UPDATE from OP:You can check reader.IsEmptyElement, and...
27 Jul 2010 by Christian Graus
Internally, I don't think that it is, I think that it still seperates it so the next node is the end node.
27 Jul 2010 by danhi
OK, I found the answer. You can check reader.IsEmptyElement, and if it's a self-closing tag it's true, false otherwise.
30 Mar 2011 by DannyStaten
I am generating word documents via the openxml sdk for office, and can't figure out why my documents open in compatibility mode. Often times they crash word when I try to close them. The packages pass the validation as it is checked by the productivity tool that you can also get from MSDN. ...
30 Mar 2011 by DannyStaten
Ok I figured this out, and it turned out to be similar to what I had to do for styles in some ways.The answer someone posted on this forum post got me started:http://social.msdn.microsoft.com/Forums/is/oxmlsdk/thread/7d55514b-f846-4790-b545-3693ab18d966[^]I took the xml in his answer...
9 Nov 2011 by Trajan6
Just a little bit late, but I wouldn't do it with an external dependency like an XML-File.My suggestion is:private static void AddSettingsToMainDocumentPart(MainDocumentPart part) { DocumentSettingsPart settingsPart = part.AddNewPart(); settingsPart.Settings = new Settings( ...
15 Feb 2011 by R. Erasmus
Hey allI've got a query on the following error I'm getting:
15 Feb 2011 by R. Erasmus
So I found the solution to my problem...Stupid tutorial uses a different version of junit which uses batchtest differently... not that they'll specify what junit version they were using.
20 Jan 2011 by DonPituti
Hello, I seek a little bit of advice...I have an WPF C# program with an XML resource file in which I have text for some buttons, like a language file (let's call it language.xml), and 2 xml more, for example english.xml and spanish.xml.I have the XmlDataProvider pointing to...
20 Jan 2011 by TheyCallMeMrJames
I suspect that the file system is reporting that the file operation is complete before it actually is, then you're requesting the file so quickly that it doesn't get the new version (it's pulling from cache or something).There are two ways to fix this.Since you are far enough along this...
20 Jan 2011 by DonPituti
Ok, got it. I had to reload the XmlDataProvider in the Loaded method.In addition, seeing that I had to reload the XmlDataProvider itself, I set it to point directly to the correct .xml file. :)
1 Jan 2011 by Jamal Seyedi
I have developed an asp.net web page in which has a reportviewer control. Every thing is OK in my PC and the control show whatever I see in Visual Studio in design mode. However, when I publish this web page to another PC this control shows the XML of rdlc file instead of a graphical report(like...
18 Apr 2011 by RDBurmon
In one of my procedure , I am getting XML , Which have node , ProductName , DeliveryDate .In my proceudre It parse the XML and insert into one table which having one NVARCHAR and one Datetime Column.In the XML I am getting the date in format (2011-02-16T11:08:00+05:30)Please let me...
20 Mar 2011 by Sergey Alexandrovich Kryukov
It's good that you failed replacing +05:30 with blank spaces and too bad you tried.This is the time zone. Without the time zone, you have the local time but loose the ability to order different events in time if they happen in different places of the globe. As you noticed +5:30 is not a...
7 Apr 2016 by Luiey Ichigo
Hi,I'm having problem to appearing the account user name. Can someone specify what's problem that I'm facing right now? Just first day of UWP and C#.XAML:
29 Mar 2010 by Anderson710129
Hi! All I feel confused that I get XML data with javascript.I check my code that's ok and I can't find the same issue with google.When I get the XML data using responseXML method, I can not get valid data and it returns 'undefined' string. But, if I add alert message before I get XML, I...
30 Mar 2010 by Sandeep Mewara
Anderson710129 wrote:this.DisplayInfo = Display; this.myxml = do_xml;Anderson710129 wrote:xmlhttp.open("GET", url, true);change the order of these statements. Use display after fetching the result. You set the XHR as Async (3rd parameter as true)... thus, the response might had not...