Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
There's more than one way to do things
 
PerlMonks  

Re^3: How do you create sub-nodes with XML::Smart

by ramrod (Hermit)
on Mar 03, 2009 at 20:58 UTC ( #747893=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use XML::Smart;
    ...
    $XML->{JOB}{NUM}[0] = $num;
    
    $XML->save('output.xml');
    
  2. or download this
    <JOB NAME="a job name" NUM="a number">
      <DESC>a description</DESC>
      <DESC>another description</DESC>
    </JOB>
    
  3. or download this
    $XML->{JOB}{DESC}= $desc;
    $XML->{JOB}{DESC}->set_node(1) ;
    
  4. or download this
    <JOB NAME="a job name" NUM="a number">
      <DESC>a description</DESC>
    </JOB>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://747893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-04-19 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (481 votes), past polls