Hi guys i am pretty new to XML. Well I have transform a xml file in format A(let's say) to format B. By surfing the websites, I found that XLST can do this.But these 2 formats dun not neccesarily have easy transforms like tag-to-tag. They can be transformed from tag-to-tag,tag-to-attribute etc.. So in this case is XLST should still be able to achieve the needs or should I have to resort to SAX or DOM.And again which is better.. Thanks in advance.. :)
hanifa 0 Newbie Poster
Recommended Answers
Jump to PostXSLT is the tool for the job, you just need to write an XSLT stylesheet to perform the transformation you want, and away you go.
How you write that XSLT is the tricky part, books have been written about it. It's a complex programming language in its own right.
Jump to PostAnything you write in XSLT could be implemented using SAX and DOM,
but why reinvent the wheel (as you'd effectively be making something similar to XSLT if you wanted any flexibility)...
XSLT is relatively easy to learn (though hard to master), reasonably fast (if you know what you're doing), …
All 5 Replies
jwenting 1,905 duckman Team Colleague
MattEvans 473 Veteran Poster Team Colleague Featured Poster
jwenting 1,905 duckman Team Colleague
hanifa 0 Newbie Poster
MattEvans 473 Veteran Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.