Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     

XML(.NET) interview questions: - What is XML?

XML stands for extensible markup language and purpose of it is describing data.  

One of the biggest problems when two applications want to talk to each other is their development environment. One may be built using .net whereas one using Java. Both cannot understand each other’s objects. In simple words the way in which data is represented will not be familiar to each other.
They have to use some standard format for representing and exchanging data. XML is all about that.
It describes data.
For instance we will represent Students using XML as follows


<Studentid="1"Name="Raghu Menon">






<Studentid="2"Name="Ramesh Pujary">






<Studentid="3"Name="Kamlesh Mehta">






<Studentid="4"Name="Sukesh Marla">






<Studentid="5"Name="Dinesh Bhoje">






What is XPath?

XPath is again a standard language for querying over our xml data. We can simply query over our xml data using Xpathsynatxes.

Example – 

  • /Students/Student/@Namewill be used to get list of names
  • Students/Student[MarksInEnglish>60] will be used get all students who have obtained more than 60 marks in English subject.

.NET support for XPATH?

There are various classes provided by Microsoft in System.Xml.Xpath namespace such as XPathDocument, XPathNavigator,XPathNodeIteratoretc using which we can filter elements of xml documents.


Helpful Website Url
Share this article   |    Print    |    Article read by 4497 times
Shivprasad koirala Koirala
I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small E-learning company in India. We are very much active in making training videos , writing books and corporate trainings. Do visit my site for .NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers
Related Articles:
Related Interview Questions: