I am using a web service (Adobe Breeze, specifically) that returns many
of it's XML names and attributes with hyphens in them. I need to
work with this results but the hyphens are killing me, as ActionScript
does not like them - I can't, for instance, reference
event.results..sco.(@sco-id == 11283).name in my resultEventHandler
function code because of that damned hyphen.
Does anyone know how to get around this?
BTW, here is a sample of the HTTPRequest results XML:
<results>
<status code="ok"/>
<scos>
<sco sco-id="11283" source-sco-id="11271" folder-id="10002"
type="content" icon="course" display-seq="0" is-folder="0">
<name>Name of first item</name>
<description>Description of first item</description>
<date-begin>2007-03-05T10:00:00.000-06:00</date-begin>
<date-modified>2007-03-06T14:01:01.927-06:00</date-modified>
<sco-tag>item one</sco-tag>
</sco>
<sco sco-id="11304" source-sco-id="" folder-id="10002"
type="curriculum" icon="curriculum" display-seq="2" is-folder="0">
<name>Name of second item</name>
<description>Description of second item</description>
<date-begin>2007-03-06T13:15:00.000-06:00</date-begin>
<date-modified>2007-03-20T17:49:45.277-06:00</date-modified>
<sco-tag>item two</sco-tag>
</sco>
</scos>
</results>