• Post Reply Bookmark Topic Watch Topic
  • New Topic

E4X and Java  RSS feed

 
Tejas Jain
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you compare E4X with JAXP (DOM & SAX) and JAXB?
Is there a Java implementation for E4X?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Rhino JavaScript library implements E4X in Java.
 
Tejas Jain
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it is JavaScript lib. We can not use it in Java code.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not following. As I said, Rhino is written in Java. E4X itself is a JavaScript technology, so if you're not supposed to use JavaScript, then you can't use E4X at all.
 
Tejas Jain
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Not following. As I said, Rhino is written in Java. E4X itself is a JavaScript technology, so if you're not supposed to use JavaScript, then you can't use E4X at all.


E2X is just another way to process XML. It is not just for JavaScript. Flex uses it. If I do not want to use JAXP and JAXB, can I use Rhino in my Java code?
The answer should be Yes.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!