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 ...
Get XML Schema Complete Reference, The now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.