Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old June 13th, 2001, 06:56 AM
terradog terradog is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Grand Rapids MI USA
Posts: 8 terradog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question XML with DOM?

My site is allowing the user to view data from an XML file(s), and I want to prevent the XML from being sent to the client.

I have been using PHP to convert the XML into HTML, but this is no fun. I hear Java is much nicer to work with for XML conversion.

Has anyone worked with Java to convert XML to HTML?

If yes, is it better the PHP?

Will Java send the XML to the client like XSL or will it pars it out and send the results like PHP?

Would I use the DOM with Java?

I am not a Java person (that is probably apparent), but I am willing to learn if it is the best way to go.

Thank you.

Reply With Quote
  #2  
Old June 14th, 2001, 06:50 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,620 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 2 h 52 m 26 sec
Reputation Power: 259
Lightbulb

Hi, you should try with Cocoon, you can find tutorials at www.phpbuilder.com or www.ibm.com/developerworks or look for a Redbook in IBM's library!

Reply With Quote
  #3  
Old June 18th, 2001, 12:51 PM
ecastanedo ecastanedo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Los Angeles, California
Posts: 102 ecastanedo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 10 sec
Reputation Power: 9
Thumbs up Java & XML

The answer to your question (in my opinion) is a definite yes. Java is better at handling XML right now. I have worked with both PHP and Java and they are both great in their own way. PHP is definitely easier to use (in general), but Java is more powerful. It is a programming language vs. PHP being a scripting language. With that, there have been a lot of devlopments in the Java zone which have brought about many parsers and applications in general that can do many things with XML. Since Java is a programming language, it also enables you to expand on what you can do with XML and extend it to outside of the browser. Also, there are many classes that are available for parsing and transforming your XML into HTML (and other formats).

So that is my long-winded yes (again, in my opinion).

If you want to learn more about Java & XML used together, check out O'Reilly's Java & XML book. Here is the URL: http://www.oreilly.com/catalog/javaxml2/

The web site gives you a sampling of the book here: http://www.oreilly.com/catalog/java...apter/ch09.html

It gives you a good introduction to using XML with Java, but it does assume that you know some Java. If you don't already, they have another book which helped me get up and running. It's called Learning Java. The URL for that one is: http://www.oreilly.com/catalog/learnjava/
__________________
Edgar Castanedo

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > XML with DOM?


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 4 hosted by Hostway