Re: Here's how to remove 'time' from a processing problem

Peter Flynn <[email protected]> Wed, 21 Dec 2022 15:19:57 +0000
Newsgroups gmane.text.xml.devel
Organization Silmaril Consultants
Message-ID <[email protected]>
On 21/12/2022 13:25, Roger L Costello wrote:
> I have a program that processes XML files in a folder. Some of the 
> XML documents contain data about a car, [...] At some point 

I think, the wrong point.

> the program reads in that XML document and begins processing it. The 
> objective of processing is to output the license plate number if the 
> car is stolen and "" (not stolen) otherwise. However, the document 
> does not contain the necessary information to make that decision.
> The information to make the decision arrives some time later,

This looks like a case of putting the cart before the horse.

> So the desired processing behavior is this:

The conventional sequence of processing would be more likely to start by 
processing a police report. It looks up the car in the documents in the 
folder about cars. If there is a match, then perform whatever action is 
required, then go onto the next police report until they are all 
finished, then stop and wait for more police reports to arrive.

I see no benefit in processing this back-to-front.

Peter


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: [email protected]
subscribe: [email protected]
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php