XML Schema Complete Reference, The
by Cliff Binstock, Chris Galtenberg, Mike Wooding, Chris Dix, Mitchell Smith, Dave Peterson
21.7. Example Application
With the concept of a distributed XML application in mind, we can create an example application that uses XML to communicate between a client and server. This example provides a sim-ple XML application for testing the position of a given point in relation to a potentially bounding polygon. Given point A, defined by two coordinates, and polygon B, defined by a list of points that indicate vertices, the application determines whether point A lies inside polygon B. Figure 21.5 shows the concept—one that comes up often in computer graphics but that also has applications in other areas. For example, in location-based services, the same algorithms can be used to determine if a GPS-enabled device has entered a particular region ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access