Jump to Content
OrangeDAM
HomeIntegrationsAPI ReferenceChangelog
v1.0

OrangeDAM
Integrations
v1.0HomeIntegrationsAPI ReferenceChangelog

Integrations

  • Content Browser SDK
    • Content Browser SDK (V2.1.0)
    • Content Browser SDK (V1)

Webhooks

  • Webhooks
    • Create a webhook subscriptionpost
    • Use webhook signatures
      • Generate a secret key for a webhook signaturepost
    • Skip webhook events

Call external API

  • Call external API
    • Example: Connect with an AI service
    • Example: Automate steps in a workflow
    • Example: Duplicate a container
  • Set up the Call external API automation
  • IDE tools
    • Credentials management in the Secret Vault
    • Notifications
    • Asynchronous processing
    • Conditions
    • Related assets
    • Bypass user permissions
    • Toast messages
    • Placeholders
  • Utilities
    • Call internal API
    • Execute HTTP request
    • Execute asset upload
    • Import from a third party
      • Batch import from a third party
    • Update from a third party
      • Batch update from a third party
    • Sign JWT with RSA
    • Get or add cache
    • Has document imported
    • Import content file
    • Publish message to AWS SNS
    • Export to S3
      • Schedule export to S3
  • Tools
    • XMLTools.Stringify
    • XMLTools.Parse
    • XMLTools.Update
    • XMLTools.Delete
  • Logs and troubleshooting
  • Importing and exporting Call external API scripts

XMLTools.Delete

Delete an XML node that you specify. This function accepts the following parameters:

ParameterDescriptionRequired
XML textA valid XML string.yes
XPath textThe XML node to delete. Do not include the root.yes
Example
var xml = XMLTools.Delete(
"<root> <s>hello world</s> <i>1</i> <o><k>v</k></o> <a>1</a> <a>2</a> <a><o><k>v</k></o></a> </root>",
"./a[3]"
);
Example output
"<root> <a> <b>-1</b> </a> <key>Hello World</key> </root>"

Updated 13 days ago