in reply to XML::Simple XMLout
It takes some fiddling, but it turns out to be possible: KeyAttr=>{Test=>'name'}, GroupTags=>{FailedTests=>'Test',SuccessfulTests=>'Test'}, NoAttr=>1, RootName=>'TestRun'
However, the solution is likely to break for the smallest change in the data structure; this is one of the problems of XML::Simple. I think the module is fine for reading simple configuration files that have been designed to work for it, but for anything beyond that, especially writing XML when you have a specific structure requirement, it starts being too finicky and brittle. One commonly recommended alternative module is XML::Twig, but there are plenty more.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Simple XMLout
by totorototo (Initiate) on Dec 19, 2014 at 15:34 UTC | |
by Anonymous Monk on Dec 19, 2014 at 15:47 UTC | |
|
Re^2: XML::Simple XMLout
by totorototo (Initiate) on Dec 29, 2014 at 11:01 UTC |