W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

RE: Converting an Object into XML

From: Tom Otvos <tom.otvos@pervasive.com>
Date: Wed, 4 Aug 1999 08:40:43 -0400
Message-ID: <3F5CDA691528D311881E00508B0CBD630C8519@tormail2.tor.pervasive.com>
To: "'Anilkumar GM'" <anilgm@aztecsoft.com>, "'www-dom@w3.org'" <www-dom@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT