Home Nokogiri put tags with separation
Reply: 0

Nokogiri put tags with separation

user477
1#
user477 Published in June 19, 2018, 6:29 pm

I'd like to message separate with :

teste = Nokogiri::XML::DocumentFragment.parse("")
    Nokogiri::XML::Builder.with( teste ){ |x|  
        x.exemplo "teste xml"
    }
    puts teste.to_xml

Message printing

<exemplo>teste xml</exemplo>

Message you want

<ns3:exemplo>teste</ns3:exemplo>
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.32004 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO