Sets the name of the root element with the given route Use empty route for setting root name of this document.
Syntax
public
void
setElementName
(
String
name
,
String...
route
)
Parameters
-
name –
The new name of the root element
-
route –
The route to the element
Exceptions
-
IllegalArgumentException –
if either of the arguments is null.