bool CMarkup::InsertChildSubDoc( MCD_CSTR szSubDoc );
Like the AddChildSubDoc method, the
InsertChildSubDoc method is called to insert a markup string subdocument in as a child element of the current main position element. The subdocument is inserted before the child position or as the first child if there is no child position. Only call this method if there is at least a main position. After a child element (subdocument) is successfully inserted, the child position points to the new child element.
The method returns
true if the child subdocument is well-formed and inserted successfully and the child position points to it. The main position is not affected by this method.
See Subdocuments and Fragments of XML Documents.