Method: ExistAPI#update_rename

Defined in:
lib/eXistAPI.rb

#update_rename(expr, expr_single) ⇒ Object

Renames the nodes in expr using the string value of the first item in exprSingle as the new name of the node. expr should evaluate to a set of elements or attributes.

  • Args :

    • expr -> //city

    • expr_single -> “town”

  • Returns : -int handle of query

  • Raises :

    • nothing ->



383
384
385
386
387
388
389
# File 'lib/eXistAPI.rb', line 383

def update_rename(expr, expr_single)
  query = "update rename " + expr + " as " + expr_single
  #puts "query #{query}"
  execute_query(query)
rescue  => e
  raise e  
end