Empact/roxml — pull request #40 by megle (2012-01-27 23:06:34+00:00)
Title: Nested wrapper fix

Fixed bug that multiple xml_accessors with the same nested :in clause create new elements for every accessor.

Example: Code like this

```ruby
class NestedWrappers
include ROXML
xml_accessor :foo, :from => 'foo', :in => 'nested/wrapper'
xml_accessor :bar, :from => 'bar', :in => 'nested/wrapper'
end

nw = NestedWrappers.new
nw.foo = 'bar'
nw.bar = 'foo'
puts nw.to_xml.to_s
```
would generate xml like this

```xml

bar

foo

```

instead of

```xml

bar
foo

```