Yeah.. You have to call that before xbird persistent APIs are used.
Or you can change the behavior by changing "xbird.database.datadir"
setting in xbird.properties file in your System.getProperty("user.dir").
> I put the search code at the bottom of the code that puts the authors
> in.
> It worked.
> Now i tried to use that code in a separate class to load all the xml
> back into objects.
> It seems that the code relies on print stream for the info
> I tried changing the query string to many different things
> String query1 = "fn:collection('/" + COLLECTION_NAME + "/.*.xml')//
> author";
> to something like
> String query1 = "fn:collection('c:\\" + COLLECTION_NAME + "/.*.xml')//
> author";
> no dice so how do I actually load the info from a file.
fn:collection("/xstreamTest/.*.xml")//author is correct.
When calling this query, you have to specify the right
"xbird.database.datadir" settings in xbird.properties.
System.getProperty("user.dir") is generally a directory
where your command is executed.
You can control serialization formats using Annotations.
xbird uses XStream for this purpose.
So, please see the following article for detail,
http://xstream.codehaus.org/annotations-tutorial.html
Thanks,
Makoto