---
name: "LedgerSMB::RESTXML::Document::Base"
section: "3pm"
platform: "linux"
package: "ledgersmb"
version: "1.3.40-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/LedgerSMB::RESTXML::Document::Base"
---

# LedgerSMB::RESTXML::Document::Base(3pm)

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.

## 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.
