Salesforce

How Do I Access an XML Document Stored in a Magic xpa Data Variable? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Access an XML Document Stored in a Magic xpa Data Variable? (Magic xpa 4.x)

You can use the XML view to access an XML document directly from a BLOB, without converting that BLOB to a file first.

Using a BLOB as a data source

  1. Specify your Main Source as your XML view.

  2. Go to the Properties of the Main Source (Alt+Enter).

  3. Go to the XML Source variable, zoom (F5) to the Variable list.

  4. Select the BLOB that contains your XML document.

Now you can use the XML document in the same way you would as if it were in a file.

See also the How Do I Create Different XML Docs Based on the Same Schema? topic.

Using a BLOB as an I/O device

If you are using the XML functions rather than the XML data views, you can use a BLOB in the Exp/Var column of the I/O Device name.

  1. Press Ctrl+I to access the I/O Devices.

  2. Press F4 to open up a line.

  3. Select Variable in the Media column.

  4. In the Exp/Var column, select the BLOB you want to access.

  5. Now, you can use this I/O device in the XML functions. You will refer to it by the generation (0 for the current task, 1 for the parent, etc.) and the sequence number of the file (here, it is 1, but you may have more I/O devices in your task).

See also

How Do I Handle an XML Document with No Schema?

The Online and Rich Client Samples projects (program XM10 and RXM10)

Reference
Attachment 
Attachment