- or download this
require XML::LibXML::PrettyPrint;
XML::LibXML::PrettyPrint
-> new( element => {inline=>['name']} )
-> pretty_print($doc)
-> toFile($file);
- or download this
<configuration>
<property>
...
<name>test2</name>
</property>
</configuration>
- or download this
<configuration>
<property>
...
</name>
</property>
</configuration>
- or download this
require XML::LibXML::PrettyPrint;
XML::LibXML::PrettyPrint->pretty_print($doc)->toFile($file);