Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Best parser for writing XML

From: "Mukul Gandhi" <gandhi.mukul@-----.--->
To: "Valone, Toren W." <TValone@---.--.--->
Date: 4/5/2008 4:56:00 PM
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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent