According to the docs, the following should force it to be a node:
$xml->{Body} = { Foo => 'Bar' }; $xml->{Body}{Foo}->set_node(1);
Otherwise, there are heuristics like there being newlines (\n) in the content, that determine whether a node or an attribute is being created... Cheers.
In reply to Re: force elements in XML::Smart
by almut
in thread force elements in XML::Smart
by Errto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |