ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Exploring E4X with Ruby
Subject:   Nice Idea
Date:   2004-09-12 09:13:40
From:   jherr2002
Response to: Nice Idea

Sounds like you need to add the new tree to the root element as opposed to the document. For example:

myDoc.myRoot << myNewTree;

As opposed to:

myDoc << myNewTree

If that doesn't work you can send me (jack_d_herrington@pobox.com) the code and I will take a look at it.

1 to 1 of 1
1 to 1 of 1