lib/roxml/xml/references.rb in roxml-2.5.2 vs lib/roxml/xml/references.rb in roxml-2.5.3
- old
+ new
@@ -88,11 +88,11 @@
def wrap(xml)
return xml if !wrapper || xml.name == wrapper
if child = xml.children.find {|c| c.name == wrapper }
return child
end
- xml.child_add(XML::Node.new(wrapper.to_s))
+ xml.add_child(XML::Node.new(wrapper.to_s))
end
def nodes_in(xml)
vals = xml.search(xpath)
@@ -152,13 +152,13 @@
add(xml, value)
elsif name?
xml.name = value
elsif array?
value.each do |v|
- add(xml.child_add(XML::Node.new(name)), v)
+ add(xml.add_child(XML::Node.new(name)), v)
end
else
- add(xml.child_add(XML::Node.new(name)), value)
+ add(xml.add_child(XML::Node.new(name)), value)
end
end
def fetch_value(xml)
if content? || name?
\ No newline at end of file