[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Serialize DOM

Subject: Re: Serialize DOM
From: "S.Ramaswamy" <srswamy@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 08 Dec 1999 10:00:07 +0530
serialize dom
skodali@xxxxxxxxxxxxx wrote:
> 
> Hi Folks,
>            After creating a document using DOM how can I serialize it as
> XML document.
> I am using IBM4J parser .
> 
> Thanks in Advance,
> Satish
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Two ways

1) if your DOM is ofTXDocument class then you can use method
printWithFormat(Writer w)(sorry I am not sure of the name but it is
there) avaible in TXDocument
2) See the code in DOMWriter available in samples directory I think

By the way, there does not seem to be any formal way in DOM for 

a) creating an empty DOM 
b) reading from an XML
c) writing out it as again as an XML

Since DOM is "XML in memory" and XML is "serialized DOM" how come the
relationship between the two is not defined at all.
 
SAX of course has a standard way to read parser.parse(InputSource in).

==--==--==--==--==--==--==--==--==--==--==--==--==--==
S.Ramaswamy
Matrix Infotech Syndicate
D-7, Poorti, Vikaspuri, New Delhi, 110018, India
PHONE:    +91-11-5610050,   FAX: +91-11-5535103  
WEB         http://MatrixInfotech.HyperMart.Net
==--==--==--==--==--==--==--==--==--==--==--==--==--==



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.