This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com