tags:

views:

130

answers:

5

What is the antonyms of "parsing" in terms of XML document.

For Example:

  • When you are reading an XML file by using DOM parser, it is called "Parsing".
  • When you create an XML file by using DOM parser, what does it called?
+8  A: 

Serialization

Joe
A: 

I've been told: Composing

Tor Haugen
+2  A: 

Serialization. Deflation. Composing. Storing. Freezing. Persisting.

Marshalling is a similar concept, but it might be instructive to know the differences..

In objective-c serialization is known as archiving.

Python pickles.

altCognito
+1 for marshalling
rascher
+2  A: 

Parsing, also called loading, is a synonym for deserializing, i.e. converting an arbitrary input to an easily readable/manipulable form.

Therefore, you can't create a new document with a DOM parser. However, complete DOM implementations contain mechanisms to generate(or construct) and serialize(or save) XML documents.

phihag
A: 

Serialisation is the process of converting a DOM tree to something for output (text, file, etc).

I've heard composition, generation and construction as terms for the actual 'building' of the new DOM tree.

Nic Gibson