Thanks!

But I'am manipulating an existing Document.
Add comments to a special position.

So I if I add the comment rel to the /_rels/document.xml.rels if it does not exists. And also in the Content_Types.xml the comments.xml part has to be overwritten.

I want to use poi only to get the parts I need for manipulating and change the dom tree and write them back to the opcPackage.

Christian

Am 28.12.2010 00:07, schrieb Nick Burch:
On Mon, 27 Dec 2010, Christian Märzinger wrote:
I try to get the Content_types.xml from a docx for checking if the comments.xml part is overriden.

But i don't get the content_types.xml

content_types.xml is a core bit of the overall file metadata, rather than a "part", which is why it doesn't show up.

However, if you want to check comments.xml, then I think looking in content_types.xml is probably the wrong track. Instead, try checking the relationships off the word packagepart that has the comments linked to it (I forget which off the top of my head, but the _rels will show you). Use that to see if the comments part is there or not, and to get it if so

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to