.NET
  Home arrow .NET arrow Working with XPath: The .NET Way
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Working with XPath: The .NET Way
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 30
    2005-11-01

    Table of Contents:
  • Working with XPath: The .NET Way
  • What is inside XPath?
  • XPath with a simple example
  • XPath related classes in .NET
  • Examining XPath with a simple VB.NET/C# example

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with XPath: The .NET Way


    (Page 1 of 5 )

    In this article we will focus on fundamentals of XPath and how to work with XPath, together with the .NET framework.

    What is XPath?

    Lot of readers have already asked me about working with XPath and XQuery using the .NET framework. To answer you all, I will start with a simple XPath article. In this article, I will introduce you to the concept of “XPath” together with .NET, which is one of the several XML technologies existing today.  Prior to reading this, you need to have a sound understanding of XML. 

    Coming to “XPath,” it is a language for finding information in an XML document. XPath is used to navigate through elements and attributes in an XML document in a very easy and effective manner.  It is not something like “find and replace” in notepad or other word processing applications.  “XPath” has its own rules, structure, syntax and several other strict issues to work with.  But if we really focus and understand “XPath” from scratch, all of those strict issues become very easy.

    First of all, is “XPath” necessary or compulsory?  To answer a question with another question, is SQL compulsory? Can’t we develop applications without SQL at all? I think you can already guess my answer.  To be frank, “XPath” is not compulsory.  You can still achieve everything (working with an XML document) without working with “XPath” at all.  But, one should consider some of the common issues in application development, such as ease, effectiveness, speed, productivity, simplicity, and so on.  All of those are available with “XPath” when working with XML documents

    Another important issue to consider is “XPath” is a “NON-XML language.”  This is one of the most critical confusions among many application developers.  It is just a language for querying XML documents, not XML itself.  Because XPath is an abstract language, it can be used in many environments.  It’s heavily used throughout XSL Transformations (XSLT) to identify nodes in the input document (XML document).  It’s also used in most Document Object Model (DOM) implementations for richer querying capabilities.

    More .NET Articles
    More By Jagadish Chaterjee


       · get in touch with XPath now. any doubts...do not hesitate to post them
       · Simple and easy explaination of the concepts.
       · This is a very Good article for beginners.
       · Great example ... I am trying the following and having no luck. Was wondering...
       · Sorry I should mention that the record count returned of 100 is when you change the...
     

    .NET ARTICLES

    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC
    - The Windows Ribbon Framework
    - Markup Language for the Ribbon Framework
    - Visually Upgrade Your MFC Project
    - New Features for the Statusbar in MFC
    - Working with the Statusbar in MFC
    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek