I am trying to implement a search function on data stored in a large XML file. (something like a search on all the Employee records stored in the XML). One option was to parse the XML (using SAX) and then construct an in memory data structure of all the Employee records. I then need to define a custom search algorithm to run over this data structure.
Another option was using XQuery and the XQJ which would allow to run search queries on XML data. There was only one implementation from DataDirect. Any idea of if there is an open source implementation of XQJ that I can use? Else I might need to default to option 1
Saxon-B is open-source and provides a basic XQuery implementation.
I don't have any experience with this implementation; at my current job we opted for the DataDirect XQuery solution, because have to deal with a lot of EDI to XML (and vice-versa) conversion.
The performance (CPU cycles and memory consumption) figures of the DataDirect implementation vs. "a popular open-source implementation" provided by DataDirect were also convincing. Though I should probably mention we never bothered to verify these figures.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.