NOP Design Home Page
Documentation
TOC/Index
Search
Downloads



ImplodeXml

Returns a string containing an XML representation of all the associative array elements formatted as XML

Sample Source

xmlString := "<?xml version=\"1.0\" standalone=\"no\" ?>
<sample1>
        <subsample1>Sample Text 1</subsample1>
        <subsample2>Sample Text 2a</subsample2>
        <subsample2>Sample Text 2b</subsample2>
</sample1>
<sample2>Other!</sample2>
"


MyArray := SplitXml xmlString

Say ImplodeXml MyArray

Sample Source

CreateArray a

CreateArray a["Sample"]

a["Sample"]["one"] := "First entry"
a["Sample"]["two"] := "Second entry & some misc <html> type tags!"
a["Sample"]["three"] := "Third entry"

Say ImplodeXml a

Related Function(s):
   Implode; Split; SplitXml;

Minimum version: 4.8, build 20050913