Repost: how do I create/find a document?

How do I do this (C++ API).

  1. Create a new document with a particular title (title: some unique ID) and add it to a folder.

  2. The document contents are just an XML blob (attachment?).

  3. Locate this document when it exists and open it directly. (without iterating through a folder I hope).

I can’t seem to find how to set the document subject and how to find this document later…

Thx

dB.