hi ,
i cant succeed add variable in xpath (libxml)
brand = “037”
xpath = “//Root/Stk[@Category=‘601’ and @Brand=#{brand}]”
stack = node.find(xpath)
i used #{brand} but doesnt work
hi ,
i cant succeed add variable in xpath (libxml)
brand = “037”
xpath = “//Root/Stk[@Category=‘601’ and @Brand=#{brand}]”
stack = node.find(xpath)
i used #{brand} but doesnt work
i solved thanks
You should post your solution for someone else’s future reference.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs