|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: A data structure for XML generationby moritz (Cardinal) |
| on Aug 17, 2009 at 06:50 UTC ( [id://789091]=note: print w/replies, xml ) | Need Help?? |
|
Over the weekend I used Carl Mäsak's SVG module (Perl 6), which -- despite its name -- is general XML serializer.
It uses Pair objects for both attributes and child tags, distinguished by the type of the value: if the value is an List, it's used as a child tag, if it's a scalar it's used as an attribute. The documentation uses this example:
I used this data structure to generate bar charts in SVG, and found it very handy.
In Section
Meditations
|
|
||||||||||||||||||||||||||||||