-
September 19th, 2014, 02:36 AM
#1
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?
-
September 19th, 2014, 07:11 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|