ITcSmTreeItem::ProduceXml

The ProduceXml() method returns a XML string with item specific information and parameter.

HRESULT ProduceXml(VARIANT_BOOLbRecursive, BSTR* pXML); 

Parameters

bRecursive

[in, defaultvalue(0)] Optional parameter for future use.

pXML

[out, retval] Contains the XML representation of the item specific data and parameter.

Return Values

S_OK

function returns successfully.

E_POINTER

pXML pointer is invalid.

Comments

The following XML string is an incomplete example of the resulting information if the tree item is a I/O device of the type SERCOS Master/Slave FC750x. This string can be used as input for the IXMLDOMDocument::loadXML method to create a XML DOM document.

<?xml version="1.0"?>
<TreeItem>
<ItemName>Device 1 (FC750x)</ItemName>
<PathName>TIID^Device 1 (FC750x)</PathName>
<ItemType>2</ItemType>
<ItemId>1</ItemId>
<ItemSubType>48</ItemSubType>
<ItemSubTypeName>SERCOS Master/Slave FC750x, PCI [Beckhoff FC7502 PCI]</ItemSubTypeName>
<ChildCount>0</ChildCount>
<Disabled>0</Disabled>
<DeviceDef>
<AmsPort>0</AmsPort>
<AddressInfo>
<Pci>
<BusNo>0</BusNo>
<SlotNo>16</SlotNo>
<IrqNo>9</IrqNo>
<FcChannel>0</FcChannel>
</Pci>
</AddressInfo>
<SercosMaster>
<Baudrate>0</Baudrate>
<OperationMode>0</OperationMode>
<SendPower>1</SendPower>
<AccessTime>200</AccessTime>
<ShiftTime>50</ShiftTime>
<StartupToPhase4>1</StartupToPhase4>
<CheckTiming>1</CheckTiming>
</SercosMaster>
</DeviceDef>
</TreeItem>

See also

ITcSmTreeItem::ConsumeXML