Salesforce

How Do I Handle Mixed-Content in an XML Document? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Handle Mixed-Content in an XML Document? (Magic xpa 3.x)

A mixed-content element is one that contains both elements and text.

Note: The XML data source must be opened in the current task, either by 'main source', link, or 'declare'.

Example:

<?xml version="1.0" encoding="UTF-8"?>

<notice>

To

<name>Fred Flicker</name>

Your DVDs are overdue. They were due on

<duedate>07/21/2003</duedate>

Please bring them in ASAP.

We really appreciate it. Thanks!

<greeting>Sincerely,</greeting>

<outlet>AAA Rentals</outlet>

</notice>

Here we have 4 text items (regular text) and 4 element items (in bold).

When using XML views, for handling mixed content we have two functions:

DbXmlMixedGet and DbXmlMixedSet

See also

The Online and Rich Client Samples projects (program XM18 and RXM18)

Reference
Attachment 
Attachment