XMLSTRUCT_ATTRIBUTE2STRUCT Convert an XMLSTRUCT Name/Attribute/Data structure to Matlab structure
THESTRUCT = XMLSTRUCT_ATTRIBUTENAME2STRUCT(XMLSTRUCT_INPUT)
Creates a Matlab structure based on a Matlab XML structure XMLSTRUCT_INPUT
such as that returnd by PARSEXML.
This function loops through all ATTRIBUTES of each entry of XMLSTRUCT_INPUT,
and creates a field in the structure THESTRUCT with the name of the attribute
and the 'Data' of the element. In the event that the 'Data' field is empty and
there is a single child in the 'Children' field, the 'Data' field of the single
child will be used.
See also: PARSEXML