Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Published by Scroll Versions from space WDESIGNER and version 22.2a
Syntax |
| ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Semantics | The operation takes any object (
| ||||||||||||||||||
Substitutables | anObject | Target object, can be any complex object. However, simple types and arrays are not supported, since they do not map naturally to a well formed XML document. | |||||||||||||||||
options |
| ||||||||||||||||||
Examples |
|
XML Serialization Example
Assume you have an object myAddress of type Address .
The following action script serializes this object.
Code Block |
---|
set xmlBlob = myAddress.classToXMLFragment(); |
The sample XML fragment below illustrates the mapping executed by classToXMLFragment()
. The object myAddress of type Address (see class diagram) is mapped the depicted XML fragment:
<name>ACME Corp.</name>
<street>108, Kearny Avenue</street>
<town>Newark</town>
Overview
Content Tools