Namespace attributes in Builder gem

hossini

New Member
Im trying to build out this sample in a Ruby on Rails app with the builder gem:\[code\]<?xml version="1.0" encoding="utf-8"?> <ngp:contactGet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ngp="http://www.ngpsoftware.com/ngpapi"> <campaignID>1033</campaignID> <contactID>199434</contactID> </ngp:contactGet>\[/code\]I can generate a tag with a namespace as follows:\[code\]xml = Builder::XmlMarkup.newxml.ngp :contactGet\[/code\]...but I can't get an attribute inside that tag.I would think that \[code\]xml.ngp :contactGet("xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance" "xmlns:ngp" =>"http://www.ngpsoftware.com/ngpapi"\[/code\]would work but it doesn't.Please Help!
 
Back
Top