Click here to Skip to main content
15,892,697 members
Everything / XML documentation

XML documentation

XML-documentation

Great Reads

by Nikita D. Sinelnikov
Creating a pretty-view XML for web applications (or other needs)
by Anurag Prajesh
Add new user registeration information in XML with C#

Latest Articles

by Nikita D. Sinelnikov
Creating a pretty-view XML for web applications (or other needs)
by Anurag Prajesh
Add new user registeration information in XML with C#

All Articles

Sort by Score

XML documentation 

2 Aug 2017 by Nikita D. Sinelnikov
Creating a pretty-view XML for web applications (or other needs)
19 Mar 2014 by CPallini
Just Googling you may find many tutorials[^] on the argument.
20 Jan 2013 by Deenuji
i want to create XML document search engine....if i give some keyword means that engine want to show some of results documents...thn i want to open that XML document in XML format in another window...
24 Jan 2013 by Sandesh M Patil
Refer below linkhttp://forums.asp.net/p/1877513/5280665.aspx/1?Re+how+to+search+content+words+from+multiple+existing+xml+documents+[^]
21 Feb 2013 by TRK3
All the times are the same order of magnitude and relatively close to each other, so they aren't actually encrypted. Most likely they are just the total number of some units of time since some origin date.It's either seconds, or milliseconds, since some date.1359279658478...
5 Feb 2014 by Vedat Ozan Oner
here:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml;using System.Xml.Linq;namespace Test_XmlChange{ class Program { static void Main(string[] args) { ...
4 Feb 2014 by RhishikeshLathe
Please refer following code, i have added closing tags for Component tags:- string szXML = "" + "" + "" + ...
5 Feb 2014 by RhishikeshLathe
Refer following code :-string szFilePath = @"D:\ABC.xml";//ur file path XmlDocument objDOM = new XmlDocument(); objDOM.Load(szFilePath);//you can specify file name here int iIndex = 0; foreach (XmlNode objXNode in...
17 Mar 2014 by Vedat Ozan Oner
you can make your array 'a' sorted. List a = g.ToList().Select(i=>int.Parse(i)).OrderBy(i=>i);List missings=new List();int idx=0; // a indexfor(int i=0; i
18 Mar 2014 by nandakishoreroyal
XmlDocument myXmlDoc = new XmlDocument(); myXMLNode = myXmlDoc.SelectSingleNode("record/Page1");page1 is the node,record is the root,you enter your own root and node to sortstring Cubs_Account_Number = myXMLNode["CUBS_Account_Number"].InnerText;you can sort like that...
18 Mar 2014 by nandakishoreroyal
var xml= xDoc.Element("Root") .Elements("I") .OrderByDescending(s => (int) s.Attribute("aa"));
19 Mar 2014 by Richard MacCutchan
Sorry to state the obvious, but:Read the XML data with one of the .NET classesLoop through the nodes extracting the attribute (or other) data itemsAdd the items to your struct, or array, or list etc.Process the resultant data as requiredBask in the admiration of your peers
20 Mar 2014 by ZurdoDev
I would use the XDocument or you could also use the XmlDocument. The XDocument is newer and supports Linq.http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument_methods(v=vs.110).aspx[^]You can use Elements() or Descendants() etc.
9 Jun 2015 by User 4180254
Try with - XmlNode xmlnode = objxmlelement.SelectSingleNode("book [@id='bk101']");
2 Feb 2016 by Richard MacCutchan
I would start by reading the documentation. See cXML - Google Search[^].
2 Mar 2017 by Graeme_Grant
First, you need classes to store the Xml data. I find Xml2CSharp.com[^] helps. Generates the following classes from your Xml data:using System;using System.Xml.Serialization;using System.Collections.Generic;namespace Xml2CSharp{ [XmlRoot(ElementName="RESPONSE_STATUS")] public class...
21 Nov 2017 by Pete O'Hanlon
I have some news for you I'm afraid. Most of the work you're going to have to do will be in JavaScript; it's the client side that you're going to be doing most of the work as you don't want to keep round tripping every time you type something.
27 Feb 2018 by Graeme_Grant
Firstly, you have an error in the XML data sample on line# 443. I would map classes to the XML data and convert. But it you want to manually read the xml data, then you could do something like this: var doc = XDocument.Parse(rawXml); var products = doc.Descendants() ...
2 Oct 2018 by Richard Deeming
PHP: POST method uploads - Manual[^] PHP 5 File Upload[^] You're trying to open the file given its path on the client. You need to open the file using the temporary path on the server where the uploaded file was saved. Replace: if(isset($_POST['fname'])){ $value = $_POST['fname']; } ...
27 Jun 2019 by F-ES Sitecore
That's not a problem you need to solve. You can create something called an XSLT file that translates xml into something else, like html, so the browser is simply telling you that there is no XSLT file referenced so it is going to show the data as raw xml. Only search engines will be accessing...
27 Jun 2019 by Dominic Burford
This isn't so much an error but a warning that the browser is unable to display the XML correctly. Without any formatting information the browser will display the XML as raw text. To display your XML in a formatted manner you will need to apply XSL formatting. You can embed this directly in your...
22 Nov 2012 by krumia
I have tried to build MSDN style documentation for my projects using Sandcastle and NDoc. However, I have found that both tools are pretty old and does not work with the .Net framework version I have (4.0).Could somebody please suggest any of the following:1. A tool that just converts...
29 Nov 2012 by Hamza chaudhary
Here is my code : use to get "CheckMark" tag from XML file listed belforeach (XmlNode node in DOC.SelectNodes("//CheckMarkObject")) { FbCheckMark checkmark = new FbCheckMark(); checkmark.Name = node.SelectSingleNode("Name").InnerText; ...
5 Dec 2012 by Member 9644739
how to add images using xml and display
12 Dec 2012 by Am Gayathri
i need to know is there any way to resolve ORA 31011 ,ORA 19202 by changing anything in XML file rather than in DB.
13 Dec 2012 by punkiv
what could be the reason, y xml validation are getting failed with 'UTF-8' encoding and successfully validate with 'iso-8859-1' encoding in case of tag value lyk - CIÖTßTR??Té . though UTF-8 is used universally now..... could any 1 tell the reason ??
6 Jan 2013 by ishandeb
Could not find a part of the path 'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\~\bin\XMLStaticData.xml'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where...
6 Jan 2013 by Abhinav S
Check if the following file path exists on your system - "C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\~\bin\XMLStaticData.xml". Most likely, you are trying to read a file that does not exist. You could also be trying to read the file from an incorrect location.In...
6 Jan 2013 by Suvabrata Roy
Hi,I understand your problem, as its a web application you don't have any EXE, when you run it runs under VS temporary Web Server which local is that where your appication is searching for that XML file.In web application when ever you try to access any local resource please...
21 Jan 2013 by Joezer BH
Hi Deenuji,To find a keyword in the XML document (as it seems you requested in the title)You can either use XPath to search the XML or Linq to XML.An example article for using XPathXPath reader-writer[^]The other option radically different in thinking is to search the raw text...
21 Jan 2013 by sijo 2
Add the following methodpublic static string GetElementByNodeName(XmlDocument xmldocInput, string NodeName) { string Output = string.Empty; try { if (xmldocInput.GetElementsByTagName(NodeName).Count > 0) { ...
23 Jan 2013 by Deenuji
how to search all XML documents by giving the keywords...if this kayword is existing in any XML documents i want to show those XML documents URL in grid view separately?
19 Feb 2013 by Sunny R Gupta
Bump. Looking for a solution to the question.Tried Natural Docs, Doxygen and NDoc. none worth it. Sand castle is totally outdated.
3 Apr 2013 by Shine Ashraf
The line,XmlAttribute attr = doc.CreateAttribute("publisher#");causes the issue.Special character '#' is not valid for attribute name.
17 May 2013 by siva575
hi friends,I am having an xml file with 12 nodes,i need to create a separate xml file for every 3 nodesexample (sample xml file): bk101 Gambardella, Matthew XML Developer's...
3 Jun 2013 by Member 1880403
I tried this one yesterday and found it to be very good, but its not free:http://www.helixoft.com/vsdocman/overview.htmlIt does have a 14 day free trial though. Check the license terms before using it, as even during the trial, there are restrictions.
11 Aug 2013 by cpquest
Hi All,I was trying to Generate a XML from DataTable and with the help of the XML i will query it by using XPATH. Everything was working fine but the XPATH was not working because the XML what i generated does not have any Attributes in the XMLNodes up to my knowledge XPATH or XQuery will work...
21 Aug 2013 by cpquest
Hi all,I am Generating a XML from a DataTable for some calculation purpose. But what happen to my XML is the column names were prefixed by some JUNK/UNKNOWN values. does any one have come accross this problem please let me know.The code what is used to generate XML from my...
2 Dec 2013 by Omprakash Kukana
102 ajmer 102 kota 103 sikar ...
24 Dec 2013 by londhess
Please chanege your LINQ query as belowvar query = from user in main.Descendants("state") where st == user.Element("stateid").Value select user.Element("statename").Value;it will work
17 Feb 2014 by Member 9058073
Hi,I got the below exception when i tried to access wcf service which returns xmldocument from client.Can anyone help me in resolving the below issue.Type 'System.Xml.XmlDocument' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its...
17 Mar 2014 by KUMAR619
I can use Xml writer to write any Xml document but can we write again using Xml Writer.If so how to do this
17 Mar 2014 by KUMAR619
How to edit root element value of XML using XML writerHow to do this only with XML writer
17 Mar 2014 by KUMAR619
I want to check whether all the XML element in the XML file are located in ascending order or not.I want to check them through an attribute called ID.Is there any way to do soHow to do so.string[] g = new string[count]; for (int i = 0; i
17 Mar 2014 by KUMAR619
How to sort an XMl file node base on its ID using C#.I know how to edit attributes of an element in XML file.But how to sort the whole XML file by its ID.Is there any way to do so.If so then can anyone get me a code snippet to solve this problem
19 Mar 2014 by KUMAR619
I am having an XML file containing many Squares under shapes
19 Mar 2014 by KUMAR619
I am having an XML file containing containing multiple nodes.But I want to add all the attributes in these nodes to struct so thatI can access it for further use.How to import XML values to StructCan anyone help me to get rid of this problem
20 Mar 2014 by KUMAR619
I am having an XL file having several nodes of same name.I want to select these nodes one by one for further purpose.
12 Jun 2014 by IshaqSalam
I was make web services. this is my code.vb filePublic Class xlogin _ Public StatusID As Boolean End Class _ Public Function Login(ByVal sUser As String,...
23 Oct 2014 by mayooran99
How can I traverse through the below XML file and print the child element node names of the DaysOfWeek node? I only need Tuesday and Wednesday as outputs. Please advice. true true
23 Oct 2014 by PIEBALDconsult
Xpath : //DaysOfWeek/*http://www.w3schools.com/xpath/xpath_intro.asp[^]
23 Oct 2014 by george4986
hi ,plz try this codenamespaces neededusing System.Xml.Linq;using System.Xml;C# code string xml = @" true true "; XDocument xDoc = XDocument.Load(XmlReader.Create(new StringReader(xml))); var selectedElement =...
9 Feb 2015 by Duncan Edwards Jones
HiI use XML documentation in code and Sandcastle (with SHFB) to create windows help files (chm) but now the powers that be are looking for a word document instead. Any ideas/links/pointers or do I need to fork and code this myself?
9 Feb 2015 by Richard Deeming
I've not used it, but Doxygen[^] claims to support RTF output.Otherwise, there are a couple of commercial products listed on this SO thread[^].
9 Feb 2015 by Yesii
Similar question, you can refer this:http://stackoverflow.com/questions/48381/generating-documentation-from-c-sharp-xml-comments[^]
3 Sep 2015 by usernetwork
I have a very large XML file of 6 GB size i want to read it and write its output in multiple files .I am currently using XmlTextReader and its taking 30 mins .Please suggest some ways to reduce the processing time .
4 Sep 2015 by usernetwork
this is my code can i improve it .namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ReadEJFile("E:\\a.txt"); } private static void ReadEJFile(string filename) { Stopwatch sw =...
25 Oct 2015 by Patrice T
Yes, there is an error in your xml node.Replace/XMLAuthenticateRequest>withorIn html, are always paired.
13 Nov 2015 by George Jonsson
JavaScript cannot directly write a file to a server, but if if your server is using PHP you can use this technology.See PHP 5 File Create/Write[^]You can then use AJAX XMLHttpRequest()[^] to call the PHP functionvar function saveFile(fileName, xmlDocument) { var data = new...
29 Dec 2015 by Maciej Los
Try something like this:string scontent = @"
2 Feb 2016 by Member 12304519
How write a code for cXML by using XML and How to Compile and How to run This file
29 Mar 2016 by Mr. Mahesh Patel
Use xml serialization and deserialization.by using it you can convert object of your class in xml. and in your object of class you can set value.
2 Mar 2017 by junisarfraz
my code is mentioned below where i load the data into xml document.XmlDocument doc = new XmlDocument(); string xml = Encoding.UTF8.GetString(resty.Data); doc.LoadXml(xml);innser xml contains:
2 Mar 2017 by jimmson
Hi,look at the examples on this page:XmlDocument Class (System.Xml)[^]
21 Nov 2017 by Dave Kreskowiak
ASP.NET code runs entirely server-side, never on the client. It handles all of your server operation and generates web pages to send to your clients. Editors, like you're describing, have to be written in javascript in order to do anything on the client. The only thing your ASP.NET code is...
28 Feb 2021 by Faizal Kamarudin
- if I want to use Microsoft Visual Studio, what type of language that I want to create an application? Actually my project was to automate XML tags from PDF files, WORDS file or Notepad files. I have my standard structure, as per below, ...
28 Feb 2021 by OriginalGriff
Quote: I am little bit confused between Console App (.NET Core) under C# and Console App (.NET Core) VB. Use the one you are familiar with. If you know VB and not C#, then develop it in VB. If you know C# and not VB, then develop it in C#. If...
28 Feb 2021 by RickZeeland
For learning C# or VB.NET see: best-resources-to-learn-net[^] You can use XElement.Load("filename.xml") to load your xml file in an easy way, see: XElement.Load Method (System.Xml.Linq) | Microsoft Docs[^] Microsoft example: XElement xmlTree1...
3 Sep 2015 by Sergey Alexandrovich Kryukov
The tags of your questions suggest correct approach: use XmlReader. It presents no limitations to the memory resources consumed, because it does not parse anything to memory. I think there is no a way to significantly increase the speed of processing compared to this approach.At the same...
14 Nov 2014 by Anurag Prajesh
Add new user registeration information in XML with C#
20 Nov 2013 by Member 10415722
We only talk about DTD and XML in class for 2 days and i have this assignment not sure if im doing it right or did everything that has been asked. Atleast i try, any help will be appreciated!!Assignment You have been asked to represent airport data where an airport has required attributes...
19 Feb 2013 by Richard MacCutchan
It took me less than a minute to find http://msdn.microsoft.com/en-us/library/b2s063f7(v=VS.71).aspx[^].
18 Sep 2013 by write2varun
Hello,I'm creating a Page in which, while Page_Load.I'm taking the data from the database and writing it to the XML file.My problem is I'm having a lot of data in the database so while creating the XML file it is taking a lot of time, which is not working for me.I need to write the...
21 Feb 2013 by virajdaw
- How to decrypt the dates...
22 Feb 2013 by virajdaw
This site UNIX timestamp to System.DateTime[^] help me to decipher the dates which were in UNIX format.On the above site, it uses seconds, for call date="1359279658478" please use milliseconds,It'll work.Foe example replace dateTime = dateTime.AddSeconds(timestamp);with dateTime =...
3 Apr 2013 by Ron.bharath
Hello All I was un able to execute a simple code shown below Please help on the same using System;using System.IO;using System.Xml;public class Sample{ public static void Main() { XmlDocument doc = new XmlDocument(); doc.LoadXml("
18 Sep 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Any type of File you operate data on, will depend upon the Size of Data.So, if you have large amount of Data, then it will take time.I guess, there is no other way out.
5 Feb 2014 by KUMAR619
Here in the code below 4 is repeated and 2 is missing.My requirement is that I want to automatically replace the repeated id with the missing word.Hence My id should be ordered without any missing id. Hoping you've understand my problem
4 Feb 2014 by KUMAR619
How to find missing values in XML file using C#
5 Feb 2014 by KUMAR619
Can anyone help me to find the missing values and repeated values such as id number from an XML file and replace the repeated values with the missing numbers My code is shown below:
6 Feb 2014 by mibetty
I´m studying XML and so far appeared text problems and i think i get it.But now i have this exercise and I did not realize what I have to do.The exercise asks to write the xml document for this image but only the dynamic content.Dynamic, we only have spotlight Videos and the rightVideos,...
13 Apr 2015 by Sandeep Puvvadi
i have been populated my xml file into treeview now i need to do cut copy paste using context menu strip,,,,, and that changes on treeview should be reflected on xmlDocument simultaneously....
13 Apr 2015 by Sandeep Puvvadi
i have been populated my treeview with xml file.... now i have a context menu strip which performs cut copy paste.... just copying a treenode and pasting that into another node will just have changes in treeview but i need those changes to be refelected in my xml file which will be loaded using...
9 Jun 2015 by Arsalan Memon
i have xml file in this file some data through book ID wise. i want to show specific Book ID detail in C# (Console Base Program) but i face an error what should i do where is my mistake please explain and solve my problem i m pasitng my XML file code as well as C# code....
25 Oct 2015 by Renjith Kalarikkal
I want to add a node in the XML without any value. /XMLAuthenticateRequest>Then i need to make a digital signature of the whole XML and the result should be appended in the node ,XMLAuthenticateRequest'But when i try, the xml node XMLAuthenticateRequest appears...
12 Nov 2015 by Member 11302528
I have created XML document to save webpage data.var xmlDoc = document.implementation.createDocument("", "", null);how can I store (upload) this on my server.thanks very much.
29 Dec 2015 by Akki Challa
hi, this is my xml
29 Mar 2016 by Member 12301708
i tried to pass the value to xml file but it gives me error "Invalid URI: The Uri string is too long"What I have tried:byte[] videobytes = File.ReadAllBytes("C:test.wmv"); string result = System.Convert.ToBase64String(videobytes); // Create...
21 Nov 2017 by smksamy
Hi Friends, I have one task. I need to create an XML editor in Asp.net or Asp.net MVC. This web application would be used for XML editor. It would have XML behaviors. For example. when we type the opening tag it will type the closing tag like Notepad++. then, I need to differentiate XML...
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...
3 Oct 2018 by Member 14003868
When I moved the 'data.csv' to other place location it will not save the 'xml-import.xml' on my computer. The code only works if the CSV file 'data.csv' is in the same folder with convert.php (name of my PHP script) but if you moved the data.csv to different location, the 'xml-import.xml' are...