Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 having an uproarious good time at the Monastery: (8)
As of 2014-09-03 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls