|
Hi Imtiyaz,
This is more a Java/XML question than a Xindice
question. You can google some of the words "java xml string node parse" and find
some answers there.
This is a snippet from my code that might point you
into the right direction as well:
XMLResource document = (XMLResource)
col.getResource(id);
String docstr = (String) document.getContent(); Document doc = DocumentHelper.parseText(docstr); Element dossier = doc.getRootElement(); Element el1 = dossier.element("SomeNode"); Element el2 = zitting.element("SomeSubNode"); return el2.getText(); I import
org.xmldb.api.modules.XMLResource
org.dom4j.Document org.dom4j.Element
org.dom4j.DocumentHelper
Good luck.
Jelle
|
