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.
The moose likes XML and Related Technologies and the fly likes Any open source XQJ implementation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Any open source XQJ implementation?" Watch "Any open source XQJ implementation?" New topic

Any open source XQJ implementation?

Sirish Kumar B R

Joined: Jan 28, 2009
Posts: 1
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

Jelle Klap

Joined: Mar 10, 2008
Posts: 1924

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:
subject: Any open source XQJ implementation?
It's not a secret anymore!