• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference beteen manipulating and transforming

 
Chris Davies
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

what is / are the differences between maniputlating an xml document using dom, sax or jdom and transforming an xml document using xslt ?

It seems to me that you can do alot more with sax, dom, jdom in terms of maniputlating the xml document itself, but would you say that using xslt only really works in terms of output the (transforming to wap, xhtml) rather than for example if then constructs etc ?

Cheers

Chris
 
Hari Vignesh Padmanaban
Ranch Hand
Posts: 578
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chris Davies:
hi

what is / are the differences between maniputlating an xml document using dom, sax or jdom and transforming an xml document using xslt ?

It seems to me that you can do alot more with sax, dom, jdom in terms of maniputlating the xml document itself, but would you say that using xslt only really works in terms of output the (transforming to wap, xhtml) rather than for example if then constructs etc ?

Cheers

Chris


Wow! words can be so misleading sometimes . So I just looked up at the definition of these words in teh dictionary they are us follows

manipulate: To move, arrange, operate, or control by the hands or by mechanical means, especially in a skillful manner:

Transform: To change markedly the appearance or form of

So in our good old XML terms, I fee that we will do more of manipulations to get a required subset of a XML document (with structural changes) and then apply a transform to it (not do any structural changes..just extract teh info and make it look much better )

And I tend to agree that DOM and SAX will do more of manipulation to get a rquired data format which XSLT can operate upon to transform it And I feel XSLT is used more on the presentation layers rather than in the Application layers

So DOM, SAX and JDOm are the guys who do most of teh work under covers
But it is possible to manipulate a XML document using XSLt also

my 2 cents
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic