Salesforce

XMLDelete Examples (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

XMLDelete Examples (Magic xpa 3.x)

<?xml version="1.0"?>

<order id="123">

<issued_by>

<address>

<street>Somewhere</street>

<city>Nowhere</city>

</address>

</issued_by>

<item cat_num="2145451544">

<price>99.99</price>

<amount>2</amount>

</item>

<item cat_num="1384325456">

<price>19.99</price>

<amount>10</amount>

</item>

</order>

  • XMLDelete (0, 1, '/order/item[2]/price','')
    In this example, the <price>19.99</price> element is removed from the document.

  • XMLDelete (0, 1, '/order','id')
    In this example, the id attribute is removed from the order element.

Reference
Attachment 
Attachment