Xml problem remove node

Hi i am trying to create a sort of xml proxy…
Receving xml through rest and then using nokogiriand mechanize posting
it to another
api. This last api isnt accepting true xml as i will explain.

The api needs


1


2

I am using rails4 with the activeresource gem installed…
The problem is i am getting an node type array that is unwnted…

1 2

What i actually need is

<inventory

1


2

I was able to get the root node from has to inventory i just now need to
get rid of the item type array…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs