The following example illustrates three serialization anchors:
The first
StringSerializer
instructs the Serializer to write the following text in the output document:
First Name:<tab>
The
ContentSerializer
writes the value of the
Person/Name/First
element to the output.
The second
StringSerializer
writes the string:
<newline>Last Name:<tab>
The IntelliScript editor represents the newline and tab with ASCII codes and
«
, respectively.
Now, assume that you run the Serializer on the following XML:
<Person gender="M">
<Name>
<First>Ron</First>
<Last>Lehrer</Last>
</Name>
<Id>547329876</Id>
<Age>27</Age>
</Person>
From the illustrated serialization anchors, the output is:
First Name<tab>Ron<newline>Last Name<tab>
The display of this text is:
First Name: Ron
Last Name:
The Serializer contains additional serialization anchors, which are not shown in the above illustration. The complete output of the Serializer is:
First Name: Ron
Last Name: Lehrer
Id: 547329876
Age: 27
Gender: M