Forum OpenACS Q&A: Re: variables to xml and back

Posted by Benjamin Brink on

Attribute value pairs of $dom_obj_att_val_larr($hash) needs to be restated in context of the other array's values, since each element may have different att/value pairs, with or without text.

set dom_obj_att_val_larr(${hash}) [list \
[list $attribute1 $value1 .. $attributeP $valueP] \ < --for case text1
[list $attribute1 $value1 .. $attributeP $valueP] \ < --for case text2
[list $attribute1 $value1 .. $attributeP $valueP] \ < --for case textM

The default value for $dom_obj_text_larr(${hash}) elements without text is an empty list.