SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 12th, 2003, 09:21 AM
hade hade is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 178 hade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 47 m 47 sec
Reputation Power: 7
difference between SAX and XSLT - xml newbie

Hi

I have been reading about xml and have come across SAX and XSLT. Correct me if I am wrong - It seems to me that both do the same job i.e both are used to convert xml files into html. Does one have to learn both SAX and XSLT or any one can get the job done. I am a bit confused about this, so a simple explanation will be lot of help to me.

Thanks

Reply With Quote
  #2  
Old May 16th, 2003, 10:28 PM
chinnman chinnman is offline
Fries w/ That?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Kansas
Posts: 8 chinnman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hade-

I will try to break this down for you. Yes, you basically can do the same with both, but it all depends on how much programming you want to do, what languages you know and the environment you are working in. XSL comes in two flavors - transformations and formatting objects (i.e. XSLT and XSL-FO.) XSLT is an XML document as well as code to transform XML. It is most commonly used for transformations to HTML. Now if you like XML and it’s structure then grab a tutorial on XSLT and go crazy. There is good information here on DevShed and also XML.com is thorough.

If you want to work with the XML doc in a more normal programming language then you will need an API to do your dirty work. SAX and DOM work with the doc in different ways. SAX is event driven and works straight thru on a node by node basis, but the DOM loads the whole doc into memory and allows manipulation to the nodes so you can then save the updated doc back out. If you check out xml.apache.org and the Xerces project you can see the different language options to work in. Usually you will be looking at C++, Java and now Perl, but new parsers are being written all the time in new languages.

So pick your output and your language of choice and have fun!!

Chinnman Out!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > difference between SAX and XSLT - xml newbie


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway