You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Tahir Akhtar <ta...@spectrum-tech.com> on 2006/03/09 15:51:41 UTC

[jxpath] HSSFWorkbook as a context

Hi All,

I am looking into possibility of using POI HSSFWorksheet as a context for
JXPath. Something like this: 

        HSSFWorkbook wb = new HSSFWorkbook();
        HSSFSheet sheet = wb.createSheet("new sheet");
        .....
        JXPathContext context = JXPathContext.newContext(sheet);


And then get to the individual cells ( and range of cells) with something
like:
        context.getValue("Row[2]/Cell[2]");

Last line is throwing 

org.apache.commons.jxpath.JXPathException: No value for xpath:
Row[2]/Cell[2]

Is it possible to do that? 

Being a newbie at both JXPath and POI, I am looking forward to even small
tips and hints.

Should I cross-post this on POI list?

Regards,
Tahir
        

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/277 - Release Date: 3/8/2006
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org