H
Harish Dewangan
Hi All,
i am new ruby on rails n i am currently working on xml with Ruby on
rails.
i prepared string and passed that string into simplexml module
xml_data = "<records>
<record><first>1</first><second>2</second><third>3</third></record>
<arn><child1>First</child1><child2>Second</child2><child3>Third</child3></arn>
<arn><child1>First</child1><child2>Second</child2><child3>Third</child3></arn>
<arn><child1>First</child1><child2>Second</child2><child3>Third</child3></arn>
</records>"
data = XmlSimple.xml_in(xml_data)
i got pure xml now and converting that xml into model object and when i
am trying to save the object it is inserting with the junk values as
shown below
'---- "1"', '--- - "2"', '--- - "3"', '--- - First', '--- - Second',
'--- - third'
is any one can help me plz whats the prb here ..
if you have any solution can you send me plz on my id :
(e-mail address removed)
Thanks in Advance
Harish
i am new ruby on rails n i am currently working on xml with Ruby on
rails.
i prepared string and passed that string into simplexml module
xml_data = "<records>
<record><first>1</first><second>2</second><third>3</third></record>
<arn><child1>First</child1><child2>Second</child2><child3>Third</child3></arn>
<arn><child1>First</child1><child2>Second</child2><child3>Third</child3></arn>
<arn><child1>First</child1><child2>Second</child2><child3>Third</child3></arn>
</records>"
data = XmlSimple.xml_in(xml_data)
i got pure xml now and converting that xml into model object and when i
am trying to save the object it is inserting with the junk values as
shown below
'---- "1"', '--- - "2"', '--- - "3"', '--- - First', '--- - Second',
'--- - third'
is any one can help me plz whats the prb here ..
if you have any solution can you send me plz on my id :
(e-mail address removed)
Thanks in Advance
Harish