Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any open source XQJ implementation?

 
Sirish Kumar B R
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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

Thanks
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic