RE: Converting an Object into XML

It is not a part of the specification, but most DOM implementations handle
it in some way.  If not, the basic idea would be to walk the tree,
extracting the relevant bits of information from each node based on its node
type, format them into well-formed XML and stream it to disk.  You also need
to escape any special characters that may appear in the various content
bits.

Tom Otvos
Director of Research, Pervasive Software Inc.

"We put the 'Go' in Tango! Yeah, baby."



> -----Original Message-----
> From: Anilkumar GM [mailto:anilgm@aztecsoft.com]
> Sent: Monday, August 02, 1999 3:30 AM
> To: www-dom@w3.org
> Subject: Converting an Object into XML
> 
> 
> 
> 
> Is it possible to convert an object (information) into an XML 
> using DOM?
> 
> if so, how?
> 
> AnilGM
> 

Received on Wednesday, 4 August 1999 08:47:06 UTC