Using the remove action for the AttributeValueBObj element
The remove action removes the elements
indicated by the Path element.
If multiple elements are referenced by the
Path element,
all those elements are removed. You can use an index to reference
a specific element for removal. For example, if multiple pen descriptions
are allowed in the example spec, you can use /penSpec/penDescription[2] to
refer to the second pen description. - Action—The String
remove. - Path—Mandatory. This is a reference to an existing element. It cannot be a reference to the root element of the XML document.
- Value—Not applicable. If this element is provided, it is ignored.
- Example—The following
removeaction:
changes the XML document shown in Adding spec values to:<AttributeValueBObj> <Action>remove</Action> <Path>/penSpec/penDescription</Path> </AttributeValueBObj><penspec:penSpec xmlns="http://www.ibm.com/mdm/data/specs/penSpec/internal/00000001" xmlns:penspec="http://www.ibm.com/mdm/data/specs/penSpec/internal/00000001"> <penId>1</penId> <penPhysicalDimensions> <diameter>10</diameter> <length>100</length> </penPhysicalDimensions> <penType>Ballpoint</penType> </penspec:penSpec>