XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Best parser for writing XML

On Fri, Apr 4, 2008 at 10:46 PM, Valone, Toren W. <TValone@dmv.ca.gov> 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS