commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tahir Akhtar" <ta...@spectrum-tech.com>
Subject [jxpath] HSSFWorkbook as a context
Date Thu, 09 Mar 2006 14:51:41 GMT
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


Mime
View raw message