generat custom Xml part: Couldn't locate part by storeItemId
Posted: Wed Jul 20, 2011 5:15 am
Hi Jason
I have again a problem by generating customXml when I use your CustomXmlBinding (changed it a bit).
In BindingHandler.applyBindings(wordMLPackage.getMainDocumentPart()); the JaxbElement wont be marshaled...
The dom document will be null here
org.w3c.dom.Document doc = XmlUtils.marshaltoW3CDomDocument(part.getJaxbElement() );
and in the logs i see :
[16:23:01] [ERROR] [BindingHandler] [xpathGetString]: Couldn't locate part by storeItemId {6517eaad-b242-4cf0-a49d-4a6c3f31c6e1}
This seems to be better without BindingHandler.applyBinding() but in this case I have the "Click to add" text in a document and I want to get rid of those...
There are some Documents which I can't open in Word if I activate BindingHandler.applyBinding().
I'm attaching my version of CustomXmlBinding.
Could you please check this out ?
Thanks
Adrian
I have again a problem by generating customXml when I use your CustomXmlBinding (changed it a bit).
In BindingHandler.applyBindings(wordMLPackage.getMainDocumentPart()); the JaxbElement wont be marshaled...
The dom document will be null here
org.w3c.dom.Document doc = XmlUtils.marshaltoW3CDomDocument(part.getJaxbElement() );
and in the logs i see :
[16:23:01] [ERROR] [BindingHandler] [xpathGetString]: Couldn't locate part by storeItemId {6517eaad-b242-4cf0-a49d-4a6c3f31c6e1}
This seems to be better without BindingHandler.applyBinding() but in this case I have the "Click to add" text in a document and I want to get rid of those...
There are some Documents which I can't open in Word if I activate BindingHandler.applyBinding().
I'm attaching my version of CustomXmlBinding.
Could you please check this out ?
Thanks
Adrian