Simple Usage of xindice

Lahiru Gunathilake <[email protected]> Tue, 22 Feb 2011 19:37:36 +0530
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
--20cf300fb4a99ccc37049cdf8061
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I want to use the Xindice to store some XML files and query the data using
XPath. Where can I find a simple instruction on how to do this ? After going
through the documentation I was able to start the Xindice with Jetty and
after setting up the classpaths in the examples I was able to execute the
samples but I am getting following error when run the samples.

.
trying to register database
Exception in thread "main" org.apache.xindice.util.XindiceException:
DatabaseManager.getCollection(xmldb:xindice:///db/addressbook) returned
null.
at
org.apache.xindice.examples.AbstractExample.getCollection(AbstractExample.java:57)


Am I doing something wrong ? I do not bother what mode Xindice is running
since I am working on a PoC, ideally I will be using embedded Xindice but
for the time being I can run with Jetty since it's pretty much straight
forward.

If you can point me to a good documentation that would be greatful.

Regards
Lahiru

-- 
Lahiru Gunathilake
Senior Software Engineer - WSO2 Inc. www.wso2.com

Email:[email protected] Blog: www.lahiru.org
Mobile: +94716381143

Lean . Enterprise . Middleware

--20cf300fb4a99ccc37049cdf8061
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,<div><br></div><div>I want to use the Xindice to store some XML file=
s and query the data using XPath. Where can I find a simple instruction on =
how to do this ? After going through the documentation I was able to start =
the Xindice with Jetty and after setting up the classpaths in the examples =
I was able to execute the samples but I am getting following error when run=
 the samples.</div>
<div><br></div><div><div>.</div><div>trying to register database</div><div>=
Exception in thread &quot;main&quot; org.apache.xindice.util.XindiceExcepti=
on: DatabaseManager.getCollection(xmldb:xindice:///db/addressbook) returned=
 null.</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at or=
g.apache.xindice.examples.AbstractExample.getCollection(AbstractExample.jav=
a:57)</div><div><br></div><div><br></div><div>Am I doing something wrong ? =
I do not bother what mode Xindice is running since I am working on a PoC, i=
deally I will be using embedded Xindice but for the time being I can run wi=
th Jetty since it&#39;s pretty much straight forward.</div>
<div><br></div><div>If you can point me to a good documentation that would =
be greatful.=A0</div><div><br></div><div>Regards</div><div>Lahiru</div><br>=
-- <br>Lahiru Gunathilake<br>Senior Software Engineer - WSO2 Inc. <a href=
=3D"http://www.wso2.com">www.wso2.com</a><br>
<br><a href=3D"mailto:Email%[email protected]">Email:[email protected]</a> Bl=
og: <a href=3D"http://www.lahiru.org">www.lahiru.org</a><br>Mobile: +947163=
81143<br><br>Lean . Enterprise . Middleware<br><br>
</div>

--20cf300fb4a99ccc37049cdf8061--