# EndPoint XMLConnector and Binding

**URL:** <https://forum.kirupa.com/t/endpoint-xmlconnector-and-binding/60849>\
**Category:** flash\
**Created:** [August 13, 2004, 4:40am UTC](https://forum.kirupa.com/t/endpoint-xmlconnector-and-binding/60849 "2004-08-13T04:40:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanmitra](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sanmitra](https://forum.kirupa.com/u/sanmitra)\
**Post date:** [August 13, 2004, 4:40am UTC](https://forum.kirupa.com/t/endpoint-xmlconnector-and-binding/60849/1 "2004-08-13T04:40:37Z")

</div>

I am trying to use the Flash MX 2004 DataBinding classes to bind UI components to xML Data. Using the “location” attribute in an EndPoint class I have not found a way to set an XML “attribute” in a XMLConnector. It only works for elements. I have not found a way to set or bind to an attribute in a XML file. Here is a snipplet from my program

_var xmlDestination:Object = {component:\_level0.xmlconn\_out, property:“params”, location:“XMLRequest.Parameters.Parameter.Value”};_

_var dataholderSource:Object = {component:\_level0.dataholder, property:“vlanname”};_

_var xmlOutBinding = new mx.data.binding.Binding(dataholderSource,xmlDestination);_

Now using this code snipplet I can set data to the Value tag if it is an XML element but not to an attribute.

Any pointers ?

thanks

-sanmitra
