Difference between XQuery and DOM
What is the difference between XQuery and JDOM pa开发者_高级运维rser? Both are using for processing XML documents. Which is more efficient?
There are several ways to process XML documents : SAX, StAX, DOM, XQuery, XSLT... DOM uses a tree like structure you can navigate, and XQuery uses a query language. DOM not only let you process existing XML documents, but also let you generate new documents, while XQuyery is probably more efficient for retrieving complex data from a large XML document using the powerful query language.
精彩评论