The Artima Developer Community
Sponsored Link

Java Buzz Forum
Rhino 1.6 R1

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Rhino 1.6 R1 Posted: Oct 4, 2004 9:55 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Rhino 1.6 R1
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

Jon Udell's recent weblog, Introduction to E4X, prompted my to take a look at the new release of Rhino.

1.6 R1 RC1, released ten days ago, includes support for ECMAScript for XML (E4X). Believe it or not, although this is the first time I heard about it, the thing is a new international standard for adding native XML support in JavaScript! The BEA geniuses donated the code to Rhino.

It add the following to the JavaScript language:

  • A native XML type in JavaScript
  • XML literals (to go with string literals and regular expression literals)
  • A natural, minimalist XML/Object mapping
  • A set of functions and operators for manipulating XML objects.
[weiqi@gao] $ rhino
Rhino 1.6 release 1_pre_RC2 2004 09 24
js> var x = <foo attr1="value1">This is a <test/></foo>
js> x.@attr1
value1
js> x.test="JOKE"
JOKE
js> x
<foo attr1="value1">
  This is a
  <test>JOKE</test>
</foo>

It's nice to see programming languages start to take XML seriously to add direct XML literal support straight into the language.

Now we can have XHTML which may contain JavaScript which may contain XHTML which may contain JavaScript which may contain ...

Read: Rhino 1.6 R1

Topic: JDO and EJB join forces: The cat is out of the bag Previous Topic   Next Topic Topic: How the politics of thinking about Java as a platform, versus Java as a language, will be good...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use