dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Xpath or DOM?

Hybrid View

  1. #1
    Join Date
    Sep 2014
    Posts
    15

    Xpath or DOM?

    In my thesis I will attempt to implement a program that can merge libraries of XML documents.
    I can't seem to find any sort of good comparisson between Xpath and DOM. Anyone with experience that would like to shed some light into what might be a good option to build an algorithm around?

  2. #2
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Xpath or DOM?

    XPath is the means by which you query a DOM (typically loaded from XML, but this isn't a necessity). It's a "query language" allowing you to select one or more nodes from a DOM.

    or if you want an analogy
    SQL is the means by which you query a relational Database



    You don't need to create a program to merge XML documents. XSLT is the technology that is catering to that (and many other) problems already. XSLT uses XPath to query the DOM and transform one document into another.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)