Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Formatting in XML::Twig->print()

by Nitrox (Chaplain)
on Feb 12, 2005 at 00:56 UTC ( [id://430355]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        <PrimaryServers>
            <Server Name="Old_1"/>
            <Server Name="Old_2"/>
        </PrimaryServers>
    
  2. or download this
    my $ps = $sc->first_child('PrimaryServers');
    $ps->cut_children;
    $ps->insert_new_elt("Server")->set_att('Name', "New_1");
    $ps->insert_new_elt("Server")->set_att('Name', "New_2");
    
  3. or download this
    <PrimaryServers><Server Name="New_2"/><Server Name="New_1"/></PrimaryS
    +ervers>
    
  4. or download this
    <PrimaryServers>
        <Server Name="New_2"/>
        <Server Name="New_1"/>
    </PrimaryServers>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://430355]
Approved by Tanktalus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found