From: Dannes W. <da...@ex...> - 2010-05-04 20:16:11
|
Hi, On Tue, May 4, 2010 at 12:26 PM, Diana ALLAM <dia...@et...> wrote: > I'm actually working on my final student project, and I have to use some > xml files in Java to extract some information from it, to update it or to > transform it. > Could I have please a part of the source code which will be sufficient to > enter an XML files (or load it) and to execute queries in XQuery, XPath > and XSLT? If not, which classes must I use to get my goal? Probably you could have a look at the 'fluent' extension, which is basically a Java5 style interface around 'embedded mode' of exist-db. It should be good enough for your needs. Why not run eXist-db as a server and access it from your java application using via REST interface? Probably easy to do. The samples directory contains a number of examples on how to use the eXist-db APIs. cheers Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Adam R. <ad...@ex...> - 2010-05-05 08:51:28
|
> I look to the JavaDoc documentation, and I found it's difficult to know > which classes must I choose and which function can I use, isn't any > documentation about using the source code? > In fact, I'm not interesting in the JTY or Tomcat server because my > project will be a simple java project having a specified user interface > without servlet. You can use the libraries described here - http://www.exist-db.org/deployment.html#N1040E But instead of the code examples there just use the Fluent API, you can find it in $EXIST_HOME/extensions/fluent org.exist.fluent.Database is your entry point into embedded development. You can find very good examples is the Fluent test cases - $EXIST_HOME/extensions/fluent/test/src/org/exist/fluent > > Could I have please a part of the source code which will be sufficient to > enter an XML files (or load it) and to execute queries in XQuery, XPath > and XSLT? If not, which classes must I use to get my goal? > > Thanks in advance for your help, > > Diana ALLAM > > > ------------------------------------------------------------------------------ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |
From: Diana A. <dia...@et...> - 2010-05-05 13:20:56
|
Hello, thanks all for your responses. Before I see the documentation and begin to test eXist with my needs, I would like to know if eXist has been tested with huge XML files? I'm interested to treat Xml files up of 6MB. Is there a JVM configuration memory to do that or it's not necessary with large XML files? Thanks a lot for you, Cheers, Diana ALLAM >> I look to the JavaDoc documentation, and I found it's difficult to know >> which classes must I choose and which function can I use, isn't any >> documentation about using the source code? >> In fact, I'm not interesting in the JTY or Tomcat server because my >> project will be a simple java project having a specified user interface >> without servlet. > > You can use the libraries described here - > http://www.exist-db.org/deployment.html#N1040E > > But instead of the code examples there just use the Fluent API, you > can find it in $EXIST_HOME/extensions/fluent > > org.exist.fluent.Database is your entry point into embedded development. > > You can find very good examples is the Fluent test cases - > > $EXIST_HOME/extensions/fluent/test/src/org/exist/fluent > >> >> Could I have please a part of the source code which will be sufficient >> to >> enter an XML files (or load it) and to execute queries in XQuery, XPath >> and XSLT? If not, which classes must I use to get my goal? >> >> Thanks in advance for your help, >> >> Diana ALLAM >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb > |
From: Adam R. <ad...@ex...> - 2010-05-05 13:23:56
|
> Before I see the documentation and begin to test eXist with my needs, I > would like to know if eXist has been tested with huge XML files? > I'm interested to treat Xml files up of 6MB. Huge XML files - 6MB is not huge. Did you mean GB, TB or PB? -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |
From: Diana A. <dia...@et...> - 2010-05-05 13:46:28
|
At the moment, I wish treat XML files at least 6MB, but in the futur, my Java application may be used for XML Files more than 6MB, maybe in GB, but not in TB or PB. Diana ALLAM >> Before I see the documentation and begin to test eXist with my needs, I >> would like to know if eXist has been tested with huge XML files? >> I'm interested to treat Xml files up of 6MB. > > Huge XML files - 6MB is not huge. Did you mean GB, TB or PB? > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb > |
From: Adam R. <ad...@ex...> - 2010-05-05 14:07:02
|
Sure, no problems with 6MB files :-) On 5 May 2010 14:46, Diana ALLAM <dia...@et...> wrote: > At the moment, I wish treat XML files at least 6MB, but in the futur, my > Java application may be used for XML Files more than 6MB, maybe in GB, but > not in TB or PB. > > Diana ALLAM > > > >>> Before I see the documentation and begin to test eXist with my needs, I >>> would like to know if eXist has been tested with huge XML files? >>> I'm interested to treat Xml files up of 6MB. >> >> Huge XML files - 6MB is not huge. Did you mean GB, TB or PB? >> >> >> -- >> Adam Retter >> >> eXist Developer >> { United Kingdom } >> ad...@ex... >> irc://irc.freenode.net/existdb >> > > > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |