Scroll to navigation

LedgerSMB::RESTXML::Document::Base(3pm) User Contributed Perl Documentation LedgerSMB::RESTXML::Document::Base(3pm)

NAMEΒΆ

LedgerSMB::RESTXML::Document::Base - Base XML:Twig structure function
hash_to_twig
Convinenve function to convert a hashref to a XML::Twig structure.
passed a hashref, required arguments:
hash - the hash to convert
name - the name of the root element.
optional arguments:
sort - by default, on set to 0 to disable. toggles whether or not hash keys are sorted in the resulting xml node created. Disabling this may save some performance if converting a lot of nodes at once.
2012-03-26 perl v5.14.2