If you are already familiar with XML, which we greatly recommend for this
chapter, then it is not a section for you.
Let's look at the following example, which represents a set of emails:
nowhere@notadomain.tld
unknown@unknown.tld
there is no subject
is it a body? oh ya
Cooking XML with OOP
[ 196 ]
So you see that XML documents do have a small declaration at the top which details
the character set of the document. This is useful if you are storing Unicode texts. In
XML, you must close the tags as you start it. (XML is strict than HTML, you must
follow the conventions.)
Let's look at another example where there are some special symbols in the data:
nowhere@notadomain.tld
unknown@unknown.tld
there is no subject
& symbols]]>
This means you have to enclose all the strings containing special characters
with CDATA.
Again, each entity may have some attributes with it.
Pages:
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212