http://www.perlmonks.org?node_id=747784
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to use XML::Smart to create XML files. Here is my code: my $XML = XML::Smart->new(); $XML->{JOB}{NAME} = $job_name; $XML->{JOB}{DESC} = $desc; $XML->{JOB}{NUM} = $num; Here is the output: <JOB NAME="Name goes here" DESC="Description" NUM="Num goes here"/> I want it to look like this: <JOB NAME="Name goes here"> <DESC>Description</DESC> <NUM>Description</NUM> </JOB> The problem is that I can't create single nodes. The data is all contained in the main node. Any advice would be appreciated. Thanks!