NAME
wtr2_smart
SYNOPSYS
perl wtr2_smart
DESCRIPTION
I wrote this the XML::SMART manpage example after having written the the XML::Simple manpage one
and I must say I was impressed by how compatible it was: it took me a good
10 minutes to modufy the wtr2_simple code to get this one: basically
understanding that I needed to work with <$xml-
{Finvoice} >> instead
of directly the original $xml
object, and removing all the extra
->{content}
calls as XML::Smart lets me happily get the content
of an element using $row->{DeliveredQuantity}
and the value
of an attribute with $row->{DeliveredQuantity}->{QuantityUnitCode}
.
Very neat.
In 10 more minutes I could add the errors, by just unshifting the newly created container in the document object.
One big annoyance with this module: I had to remove the -w
switch as
I kept getting warnings. This should be in the TODO list of the author
(along with the unnecessary attacks against XML::Simple in the docs, the
module can stand on its own and certainly does not need them).
AUTHOR
Michel Rodriguez <mirod@xmltwig.com>
LICENSE
This code is Copyright (c) 2003 Michel Rodriguez. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Comments can be sent to mirod@xmltwig.com
SEE ALSO
the XML::Smart manpage, the XML::Simple manpage
Ways to Rome 2 - Kourallinen Dollareita: http://www.xmltwig.com/article/ways_to_rome_2/