其他功能 > Windchill Supplier Management > 使用 DTD 加载供应商和部件数据 > 使用 suma_ixb.dtd > 示例 XML 文件
  
示例 XML 文件
以下示例 XML 文件说明如何加载 Windchill Supplier Management 中所需的对象类型。
用于导入厂商部件的 XML 文件
此 XML 文件用于加载厂商部件 (suma_vendor_part_1)。
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE VendorPart SYSTEM "standardX10.dtd">
<VendorPart>
<ObjectID/>
<number>SUMA_VP_000001</number>
<name>suma_vendor_part_1</name>
<defaultUnit>ea</defaultUnit>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>buy</partSource>
<domainName>/Default</domainName>
<folderPath>/Default</folderPath>
<view>((null))</view>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
<lifecycleInfo>
<lifecycleTemplateName>Default</lifecycleTemplateName>
<lifecycleState>INWORK</lifecycleState>
</lifecycleInfo>
<teamIdentity>Default</teamIdentity>
<externalTypeId>WCTYPE|com.ptc.windchill.suma.part.ManufacturerPart</externalTypeId>
<supplierName>My Vendor A</supplierName>
</VendorPart>
用于导入制造商部件的 XML 文件
此 XML 文件用于加载制造商部件 (suma_manuf_part_1)。
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ManufacturerPart SYSTEM "standardX10.dtd">
<ManufacturerPart>
<ObjectID/>
<number>SUMA_MP_000001</number>
<name>suma_manuf_part_1</name>
<defaultUnit>ea</defaultUnit>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>buy</partSource>
<domainName>/Default</domainName>
<folderPath>/Default</folderPath>
<view>((null))</view>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
<lifecycleInfo>
<lifecycleTemplateName>Default</lifecycleTemplateName>
<lifecycleState>INWORK</lifecycleState>
</lifecycleInfo>
<teamIdentity>Default</teamIdentity>
<externalTypeId>WCTYPE|com.ptc.windchill.suma.part.ManufacturerPart</externalTypeId>
<supplierName>My Manufacturer A</supplierName>
</ManufacturerPart>
用于导入采购上下文的 XML 文件
此示例 XML 文件用来加载采购上下文 (本例中为 context_x10)。
* 
AXLContext 元素代表了可由您的组织使用的采购上下文。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AXLContext SYSTEM "standardX10.dtd">
<AXLContext>
<ObjectID/>
<name>context_x10</name>
<description>context_x10 in My Organization</description>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>
</AXLContext>
用于在 AML 和 AVL 中导入条目的 XML 文件
此示例 XML 文件用来加载在采购上下文 "context_x10" 中定义的 OEM 部件 (本例中为 suma_oem_part_1)、制造商部件 (本例中为 SUMA_MP_000001) 和厂商部件 (本例中为 SUMA_VP_000001) 之间的关系。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AXLEntry SYSTEM "standardX10.dtd">
<AXLEntry>
<ObjectID/>
<OEMPartAXLInfo>
<WTPartRef>
<ObjectID/>
<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary=MyProduct
</objectContainerPath>
<number>SUMA_OEM_0000001</number>
<name>suma_oem_part_1</name>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>make</partSource>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
</WTPartRef>
</OEMPartAXLInfo>
<AXLContextRef>
<ObjectID/>
<name>context_x10</name>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>
</AXLContextRef>
<ManufacturerPartAXLInfo>
<WTPartMasterRef>
<ObjectID/>
<className>com.ptc.windchill.suma.part.ManufacturerPartMaster</className>
<number>SUMA_MP_000001</number>
<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary
=MyLibrary</objectContainerPath>
</WTPartMasterRef>
<AXLPreferenceValue>20</AXLPreferenceValue>
</ManufacturerPartAXLInfo>
<VendorPartAXLInfo>
<WTPartMasterRef>
<ObjectID/>
<className>com.ptc.windchill.suma.part.VendorPartMaster</className>
<number>SUMA_VP_000001</number>
<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary=MyLibrary</objectContainerPath>
</WTPartMasterRef>
<AXLPreferenceValue>20</AXLPreferenceValue>
</VendorPartAXLInfo>
</AXLEntry>
用于在 AVL 中导入条目的 XML 文件
此示例 XML 文件用来加载在所定义的上下文 (本例中是 context_x10) 中 OEM 部件 (本例中为 SUMA_OEM_0000001) 和厂商部件 (本例中为 SUMA_VP_000001) 之间的关系 (由 AXLEntry 元素定义)。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AXLEntry SYSTEM "standardX10.dtd">
<AXLEntry>
<ObjectID/>
<OEMPartAXLInfo>
<WTPartRef>
<ObjectID/>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization/wt.inf.library.WTLibrary=MyProduct</objectContainerPath>
<number>SUMA_OEM_0000001</number>
<name>suma_oem_part_1</name>
<endItem>false</endItem>
<defaultTraceCode>0</defaultTraceCode>
<genericType>standard</genericType>
<partType>separable</partType>
<partSource>make</partSource>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
</versionInfo>
</WTPartRef>
</OEMPartAXLInfo>
<AXLContextRef>
<ObjectID/>
<name>context_x10</name>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>
</AXLContextRef>
<VendorPartAXLInfo>
<WTPartMasterRef>
<ObjectID/>
<className>com.ptc.windchill.suma.part.VendorPartMaster</className>
<number>SUMA_VP_000001</number>
<objectContainerPath>/wt.inf.container.OrgContainer=My Organization/wt.inf.library.WTLibrary=MyLibrary</objectContainerPath>
</WTPartMasterRef>
<AXLPreferenceValue>20</AXLPreferenceValue>
</VendorPartAXLInfo>
</AXLEntry>