DataManager RT

  1. Home
  2. Docs
  3. DataManager RT
  4. XML Integration Guide
  5. Sample delete XML

Sample delete XML

<?xml version=”1.0″?>

<ImportData xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>

<Customer>

<Deletes>

<Divisions>

<Division Name=”Test Div2″ Key=”Test Div2″>

<Attributes>

<Attribute Name=”Name”>

<Value>Test Div2</Value>

</Attribute>

<Attribute Name=”Unique Tag”>

<Value>Test Div2</Value>

</Attribute>

</Attributes>

</Division>

<Division Name=”Delete-Test-1″ Key=”Delete-Test-1″>

<!– For delete test, default is cascade = false, so Sub-1 should be created and still present after delete –>

<Attributes>

<Attribute Name=”Unique Tag”>

<Value>Delete-Test-1 UQ</Value>

</Attribute>

</Attributes>

</Division>

<Division Name=”Delete-Test-2″ Key=”Delete-Test-2″ Cascade=”TRUE”>

<!– For delete test, use flag cascade = TRUE, so Sub-2 should be created on insert and then deleted for delete test –>

<Attributes>

<Attribute Name=”Unique Tag”>

<Value>Delete-Test-2 UQ</Value>

</Attribute>

</Attributes>

</Division>

</Divisions>

<Models>

<Model Name=”MD101″ Key=”MD101″>

<Attributes>

<Attribute Name=”Name”>

<Value>MD101</Value>

</Attribute>

<Attribute Name=”Unique Tag”>

<Value>MD101 UQ</Value>

</Attribute>

</Attributes>

</Model>

<Model Name=”MD528-01″ Key=”MD528-01″>

<!– Model for delete test, should be deleted from all rels–>

<Attributes>

<Attribute Name=”Name”>

<Value>MD528-01</Value>

</Attribute>

<Attribute Name=”Unique Tag”>

<Value>MD528-01</Value>

</Attribute>

</Attributes>

</Model>

<Model Name=”MD528-02″ Key=”MD528-02″>

<!– Model for delete test, should only delete from the parent specified –>

<Attributes>

<Attribute Name=”Name”>

<Value>MD528-02</Value>

</Attribute>

<Attribute Name=”Unique Tag”>

<Value>MD528-02</Value>

</Attribute>

</Attributes>

<Parents>

<Division Name=”Div1Level2″ Key=”DV1L2″>

<Attributes>

<Attribute Name=”Unique Tag”>

<Value>DV1L2_Tag</Value>

</Attribute>

</Attributes>

</Division>

</Parents>

</Model>

</Models>

<IPLs>

<IPL Name=”Chassis” Key=”5101_132219″>

<Attributes>

<Attribute Name=”Unique Tag”>

<Value>Chassis</Value>

</Attribute>

</Attributes>

</IPL>

</IPLs>

<IPLParts>

<IplPart PartNumber=”AGZ1115″>

</IplPart>

</IPLParts>

<MasterPartsList>

<Parts>

<Part PartNumber=”TestMasterPart-2″ Description=”Tuesday”></Part>

</Parts>

</MasterPartsList>

<Images>

<Image FilePath=”images” FileName=”5101_13.png”>

</Image>

</Images>

<Literatures>

<Literature FilePath=”Literature” FileName=”toc1.pdf”>

</Literature>

</Literatures>

</Deletes>

<Hierarchy>

<DivisionKeys>

<Key>Name</Key>

<Key>Unique Tag</Key>

</DivisionKeys>

<ModelKeys>

<Key>Name</Key>

<Key>Unique Tag</Key>

</ModelKeys>

<IplKeys>

<Key>Name</Key>

<Key>Unique Tag</Key>

</IplKeys>

<ChapterKeys>

<Key>Name</Key>

<Key>Unique Tag</Key>

</ChapterKeys>

<AttachmentKeys>

<Key>Name</Key>

<Key>Unique Tag</Key>

</AttachmentKeys>

</Hierarchy>

<MasterPartsList>

<InsertDescriptionsOnly>false</InsertDescriptionsOnly>

<Parts>

<Part PartNumber=”TestMasterPart-3″ Description=”Pricing delete”>

<!– just delete CAD, keep Default –>

<Pricing>

<Audience>CAD</Audience>

<MSRP>0</MSRP>

<Cost>0</Cost>

<AsOf>05/15/2019</AsOf>

</Pricing>

</Part>

<Part PartNumber=”TestMasterPart-1″ Description=”New description”>

<Attributes/>

<Supersessions GroupType=”AND” Action=”DELETE”>

<Supersession PartNumber=”112290791/0″ Uom=”NotSpecified” Quantity=”1″ IsMandatory=”true” />

</Supersessions>

<Dimensions>

<UOM></UOM>

<Length></Length>

<Width></Width>

<Height></Height>

</Dimensions>

</Part>

</Parts>

</MasterPartsList>

</Customer>

</ImportData>

 

 

 

Print this article
Was this article helpful to you? Yes No

How can we help?