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

Re: Best parser for writing XML

  • From: "Mukul Gandhi" <gandhi.mukul@g...>
  • To: "Valone, Toren W." <TValone@d...>
  • Date: Sat, 5 Apr 2008 22:26:02 +0530

Re:  Best parser for writing XML
On Fri, Apr 4, 2008 at 10:46 PM, Valone, Toren W. <TValone@d...> wrote:
> Hi, I don't know if this is the appropriate list for such a basic question,
> but here it goes! I am writing a desktop application in Java that needs to
> read XML files and modify and write out XML files. Currently I have SAX as
> my parser and it does a good job of reading XML but in all the books I have
> read writing or modifying XML is really not covered (for SAX). DOM seems to
> have the ability to read and write but is said to be constrained by large
> files (but how large is not specified). I was wondering if anyone could
> point me in the right direction! Thanks!

I agree with Mike. If you have some input XML(s), and need to modify
them based on some rules, and produce an XML output, then XSLT is
likely the best language to perform this task.

To my opinion, approaches like DOM to create XML documents are useful
when we just need to create XML, and don't have the concept of input
and the transformation rules. Though of course, DOM can be used to
read an XML document, modify it, and then write the modified result to
another XML. But if input XML, and the transformation rules are
complex, writing a DOM program can become difficult; and here will lie
the benefit of XSLT.

So certainly, your requirement can be suitably met by XSLT.


-- 
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com/
http://mukulgandhi.blogspot.com/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.