开发者

Renaming XML elements in Ruby?

开发者 https://www.devze.com 2023-01-10 19:09 出处:网络
How does one go about renaming an XML eleme开发者_StackOverflownt using REXML or another Ruby library?

How does one go about renaming an XML eleme开发者_StackOverflownt using REXML or another Ruby library?

Thanks for any advice.


Using Nokogiri:

my_node.node_name = "new_name"
0

精彩评论

暂无评论...
验证码 换一张
取 消