website logo
⌘K
Explore our documentation
Contact APIANT support
What is APIANT?
Automation Editor
Key Concepts
Account Management
Managing Automations
App Connections
Building Automations
Alert Mappings
Troubleshooting
CRMConnect: Mindbody → HubSpot
CRMConnect: DonorPerfect → HubSpot
CRMConnect: DonorPerfect → ActiveCampaign
MailConnect: DonorPerfect → Mailchimp
ShopConnect
ShopConnect Settings
Sync Products
Manually sync Mindbody services/pricing options to Shopify
How to tag products in Shopify to prevent sync during sales sent to Mindbody
Retrying orders from Shopify → Mindbody
Manually pushing Mindbody orders to Shopify
Mindbody Pricing Discontinuation: Integration with Shopify
Guide to manually syncing Mindbody Packages with Shopify Products
Features that are not supported in ShopConnect
Automation Alert Reports
Linked Accounts
ZoomConnect
New features in version 4
Settings
General
Email & SMS
BOTs
MINDBODY
Zoom
ZoomConnect Mindbody Appointments - Setup and requirements
Troubleshooting
Assembly Editor
Key Concepts
Account Management
API Key Management
Managing Content
Building Assemblies
API Integrations
Other Assembly Types
Keyvalue Storage
Assembly development cycle
APIANT for Integrators
Help Forum
Automation Templates
Development Server
Module IDE
Shared App Connections
Tenants and Linked Accounts
APIANT Inline
Supported functionality
Embed Inline
Sandbox
Docs powered by
Archbee
Assembly Editor
Building Assemblies

HTTP, XML, and XPath

3min

Building assemblies in the assembly editor requires some knowledge of HTTP, XML, and XPath.

For an introduction to HTTP, see here.

For an introduction to XML, see here.

For an introduction to XPath, see here.

Supported XPath functionality

Assembly modules that process XML provide dropdowns to select nodes and attributes based on XPaths that are automatically parsed from the module's input data streams:

Document image


You can edit these XPaths manually if needed, when the automatically parsed XPaths don't select needed nodes.

The system does not support all XPath functionality within the assembly modules, however. Only a subset of overall XPath functionality is available.

Given this sample XML:

Document image


This is the available XPath functionality that can be used within assembly modules:

myXML/person[1]

Just the first "person" node.

Homer

myXML/person

All the "person" nodes

Homer, Marge, Montgomery

myXML/person[2-3]

"person" nodes 2 to 3 inclusive

Marge, Montgomery

myXML/person[2-]

"person" nodes 2 and onwards

Marge, Montgomery

myXML/person[-2]

"person" nodes up to and including 2

Homer, Marge

myXML/person[@show]

All "person" nodes that have a "show" attribute

Homer, Marge, Montgomery

myXML/person[@show = 'simpsons']

All "person" nodes that have a "show" attribute which equals "simpsons" (compare is case-sensitive)

Homer, Marge, Montgomery

myXML/*/firstname

All "firstname" nodes under any node in "myXML"

Homer, Marge, Montgomery

myXML/person[1]/@show

The "show" attribute of the first "person" node

simpsons

myXML/person[1]/lastname/text()

The text of the "lastname" node of the first "person" node

Simpson

myXML/person/last()

The number of "person" nodes

3



If you need more XPath functionality than is possible within the pre-built baseline modules, then you should use the Extension - Server-Side Script module and write Java JSP code that uses the VTD-XML parser to process the XML as needed.



Updated 03 Mar 2023
Did this page help you?
PREVIOUS
Your first assembly
NEXT
Editor functionality
Docs powered by
Archbee
TABLE OF CONTENTS
Supported XPath functionality
Docs powered by
Archbee