# Combobox and xml data with images

**URL:** <https://forum.kirupa.com/t/combobox-and-xml-data-with-images/316159>\
**Category:** Uncategorized\
**Created:** [November 14, 2010, 8:27pm UTC](https://forum.kirupa.com/t/combobox-and-xml-data-with-images/316159 "2010-11-14T20:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![walerka](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@walerka](https://forum.kirupa.com/u/walerka)\
**Post date:** [November 14, 2010, 8:27pm UTC](https://forum.kirupa.com/t/combobox-and-xml-data-with-images/316159/1 "2010-11-14T20:27:06Z")

</div>

Hello! i have a problem, me need add in combobox data with xml and need add images (images in xml), how?

i have code:

```auto
labelIconCombo = new ComboBox();
            labelIconCombo.prompt = Resources.UI_ANNOTATIONSICONPROMPT;
            labelIconCombo.rowCount = 16;
            labelIconCombo.dataProvider = new DataProvider([
                { label:Resources.CONTENT_ANNOTATIONSLABEL1, id:"caption" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL2, id:"polygon" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL3, id:"externalGraphicFile" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL4, id:"circle" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL5, id:"triangle" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL6, id:"square" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL7, id:"arrowUp" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL8, id:"arrowUpRight" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL9, id:"arrowRight" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL10, id:"arrowDownRight" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL11, id:"arrowDown" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL12, id:"arrowDownLeft" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL13, id:"arrowLeft" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL14, id:"arrowUpLeft" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL15, id:"lineHorizontal" },
                { label:Resources.CONTENT_ANNOTATIONSLABEL16, id:"lineVertical" }
            ]);    

```

output data in combobox, but without xml and images, how add output with xml and add images with xml

Thanks
