spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / programming / php / php4xml / chap10 / 3 To page 1To page 2To page 3To page 4To page 5To page 6current page
[previous]

Professional PHP4 XML, Chapter 10: Putting It Together

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

Other Querying Alternatives

There are other querying alternatives for XML such as XQL and XQuery. We didn't cover them in this chapter since there isn't a PHP implementation of these alternatives. As they evolve and become stable we may find PHP extensions that support them.

Chapter 14 has a short introduction to XQuery. The specification is available at http://www.w3.org/TR/xquery/.

Abstraction Again

Querying an XML document is the problem where more solutions can be applied - XQL, XQuery, XSLT, XPath, DOM, SAX, and others can be used to query a document. So it's useful to have a query class abstracting queries. Also, it is almost always good to separate what the application needs from how it is done.

Caching Strikes Back

As with transformations, we might cache query results to reuse the result if the same query is applied to an unchanged document. The same considerations we made about caching transformations apply here.

Choosing a Querying Strategy

With so many options, choosing a querying strategy can sometimes be hard. We recommend the following strategy:


home / programming / php / php4xml / chap10 / 3 To page 1To page 2To page 3To page 4To page 5To page 6current page
[previous]


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Installing and Using Meeplace, the Business Review CMS · Sending an HTML and Plain Text E-newsletter with ASP.NET, Part 2 · Create Multilingual Web Sites with Windows Unicode Fonts
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MySql View Technique for Grouping Crosstab Column Data · Why You Need a Mobile Web Site · Tame Web Marketing with Social Media Management

Created: August 26, 2002
Revised: August 26, 2002

URL: http://webreference.com/programming/php/php4xml/chap10/3/7.html