xPath with Word 2010

Hi all
our customers are going to introduce Office2010 and we want to support them with this very good library.
Jason, can you say when word 2010 will be full supported?
I have an issue by searching for Content Controls with xpath on Word 2010 documents.
On 2010 version it doesn't find the Content Control, while for 2007 is ok.
The code is the same for both versions
I'm doing it with docx4j 2.8.0 version and java 1.6 on Rational Software Architect.
in Attach you have both versions of the document.
Could you give some help or clue please?
thanks
Adrian
our customers are going to introduce Office2010 and we want to support them with this very good library.
Jason, can you say when word 2010 will be full supported?
I have an issue by searching for Content Controls with xpath on Word 2010 documents.
On 2010 version it doesn't find the Content Control, while for 2007 is ok.
The code is the same for both versions
- Code: Select all
String xpathSdt = "//w:sdt/w:sdtPr/w:tag";
//String xpathSdt = "//w:sdt";
List<Object> listAllContentControls = null;
try {
// Content Controls in MainDocumentPart
listAllContentControls = mainPart.getJAXBNodesViaXPath(xpathSdt, false);
} catch (JAXBException e) {
log.error("Exception: " + e.getMessage(), e);
return null;
}
I'm doing it with docx4j 2.8.0 version and java 1.6 on Rational Software Architect.
in Attach you have both versions of the document.
Could you give some help or clue please?
thanks
Adrian