Reading and writing in xml can be done in different ways, some common classes people use are XmlTextReader, XmlTextWriter , XmlDocument but we will use XDocument. By using the other classes say XmlTextReader we need to use the while loop to read and check every node by using XmlNodeType, for a long XML file which is not suitable. We need a way to search the exact node by providing Id of the... By Ali Adravi On 20 Dec 2014 Viewed: 5,015
When there was XmlDocument why we need XDocument, is there any better feature available with XDocument, answer is yes, XDocument has a number of benefits, easy to create, easy to update, easy to search, ability to use LINQ to XML, cleaner object model etc. In this post we will see some examples and difference of code while using XmlDocument and XDocument; we will discuss some way to convert... By Ali Adravi On 16 Mar 2013 Viewed: 3,481
Convert XML or JSON into a class by using visual studio is as easy as just copy and two clicks, never matter how big or how complicated is our XML or JSON. In this article we will create some dummy XML and json and will try to convert them into class without writing a single property manually. It does not create 100% correct data type but created all the properties for. Say we have an XML or... By Ali Adravi On 20 Dec 2014 Viewed: 2,058
In some situations we need to create website menu from database, say our application have ability to create pages so that must also need to have a menu item to go to that page. So how to create menu with all those nice CSS and other settings, I think XSLT is best to use in these situations. Let’s see what we would need to create our menu 1. Procedure to get data from database in xml... By Hamden On 16 Mar 2013 Viewed: 1,858
HTML syntax, this is the format suggested for most authors. It is compatible with most legacy Web browsers. If a document is transmitted with the `text/html MIME` type, then it will be processed as an HTML document by Web browsers. This specification defines version 5 of the HTML syntax, known as "HTML5". XHTML syntax, which is an application of XML. When a document is transmitted with an XML... By Alicia Gonzalez On 25 Dec 2012 Viewed: 1,183
XML (Extensible Markup Language) is a simple text-based format for representing structured information: documents, data, configuration, books, transactions, invoices, and much more. It was derived from an older standard format called SGML. **XML Used For** XML is one of the most widely-used formats for sharing structured information today: between programs, between people, between... By Alicia Gonzalez On 25 Dec 2012 Viewed: 1,133