Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

XML::Simple attribute indentation not working

by Popcorn Dave (Abbot)
on Sep 23, 2007 at 05:37 UTC ( #640567=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open FH, ">", "webcams.xml";
    print FH XMLout($combined, KeyAttr => {AttrIndent => 1,
                                xmldecl => '<?xml version="1.0" encoding="
    +UTF-8"?>',});
    close FH;
    
  2. or download this
    <opt class="java.beans.XMLDecoder" version="1.6.0-oem">
      <object class="java.util.HashSet">
    ...
        <void method="add" string="football" />
      </object>
    </opt>
    
  3. or download this
    <java version="1.6.0_02" class="java.beans.XMLDecoder"> 
     <object class="java.util.HashSet"> 
    ...
      </void> 
     </object>
    </java> 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2019-05-23 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (142 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!