API | ITcSmTreeItem Methods 5.2.1.1 ITcSmTreeItem::ConsumeXml | ITcSmTreeItem::ConsumeXml Imports XML data into the current item or into items selected via XML. Signature HRESULT ConsumeXml(BSTR bstrXML); Parameter Return value Error codes E_FAIL : The XML could not be loaded, or no target Tree Item was found. TSM_E_ITEMNOTFOUND : An item referenced via PathName , SubName , or ObjectId could not be found. TSM_E_INVALIDITEMTYPE : ItemId cannot be changed, or AmlId is already taken. TSM_E_MISMATCHINGITEMS : ItemId is already in use by another Tree Item. E_ACCESSDENIED : The associated file must not be edited. TSM_E_ITEMDELETED : no longer refers to a valid Tree Item.
5.2.1.2 ITcSmTreeItem::CreateChild | ITcSmTreeItem::CreateChild Creates a new child below the current item. Not every item type supports this operation; in that case, E_NOTIMPL is returned. TE1000 57 Version: 1.7.0 Property Type get/set Description VarCount long* get Returns the number of variables in a given direction. Method Description NewEnum [} 61] _ Generates an enumeration over the direct child nodes. ConsumeXml [} 57] Imports XML data into the current item or selected target items. CreateChild [} 57] Creates a child with a name, SubType, and optional additional data. DeleteChild [} 58] Deletes a direct child by its name.
ExportChild [} 58] Exports a child or the current item to an .xti file. GetLastXmlError [} 59] Returns the most recently saved XML error context. ImportChild [} 59] Imports a child item from an XML/XTI file. LookupChild [} 60] Searches for a direct child by name or by a language- independent name. ProduceXml [} 61] Serializes the item as TreeItem XML. Name Type Description bstrXML BSTR [in] XML document or XML snippet for Tree Item import. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _