I need to retrieve the ino:id that has been newly assigned to a document that has just been inserted.
There are possibly several identical documents under one doctype. So there is no way to perform a query on the id based on the content of the document. (the structure may be unknown to the application anyway.)
I’m using this id for performing a query immediately after insertion.
Is it possible to do this with the C-API?
i tried to use tac_get_messagetext after tac_process, but it return nothing interesting.
Another way that just came into my mind is to add a unique name to the document when inserting, like tac_load allows.
Is it possible to add xml documents with tac_load?
The API documentation tells “If required, use tac_process() instead for XML documents.”
When is this required?
Which mime_type value is necessary for xml?