Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.2.0
Div
Classe2e-refDiv
Rp
Syntax
Code Block
languagenone
set aBlob = anObject.classToXMLFragment()
set aBlob = anObject.classToXMLFragment(options)
Semantics

The operation takes any object (anObject) and tries to map it to an XML fragment. The fragment structure is given by the class definition of anObject. If this is not possible an error is raised (e.g. XML parser errors, invalid mappings, etc.)

Multiexcerpt include
MultiExcerptNamemapping_rules
nopaneltrue
PageWithExcerptclassToXML

note
Info
iconfalse

A conversion with

the

operation classToXMLFragment() always returns an object of type Blob. To display this data as a String you need to transcode it first (see transcodeToString).

SubstitutablesanObjectTarget 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
Multiexcerpt include
MultiExcerptNameoptions
nopaneltrue
PageWithExcerptclassToXML
Examples
Code Block
languagenone
set xmlBlob = myAddress.classToXMLFragment();

Multiexcerpt include
MultiExcerptNameconversions
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE

...