[jdom-interest] Linearising a document

Michael Kay mike at saxonica.com
Wed Nov 8 01:50:08 PST 2006

> It has come to my attention that the term used for 
> linearising a dom may be known as marshalling. i.e. laying 
> out the whole dom as a flat file xml style. What's 
> unmarshalling, anyway?

Converting the tree to lexical XML usually called "serialization", although
that term is overloaded. 

The term marshalling generally refers to a process that takes a graph of
objects as input and produces a message that can be sent over the network
(which might be XML, but usually isn't). Unmarshalling is the reverse
processing - taking the message and converting it back to a graph of
> The question at hand is actually, how do I linearise a jdom doc?

You need to be clear whether you are trying to generate the lexical XML
representation of the document, or some arbitrary network serialization.

Michael Kay

> Without having me navigate through the whole doc.
> I do not wish to supply any style-sheet.
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity 
> to whom they are addressed. If you have received this email 
> in error please notify the sender immediately. Please note 
> that any views or opinions presented in this email are solely 
> those of the author and do not necessarily represent those of 
> the company. Even though this company takes every precaution 
> to ensure this email is virus-free, the recipient should 
> check this email and any attachments for the presence of 
> viruses. The company accepts no liability for any damage 
> caused by any virus transmitted by this email.
> Protedyne Corporation, 1000 Day Hill Rd, Windsor, CT 06095, 
> USA,                                                                  
> www.protedyne.com
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@you
> rhost.com

More information about the jdom-interest mailing list