# \[ColdFusion\] - Sending an ID from an XML object

**URL:** <https://forum.kirupa.com/t/coldfusion-sending-an-id-from-an-xml-object/183778>\
**Category:** programming\
**Created:** [March 29, 2006, 11:45pm UTC](https://forum.kirupa.com/t/coldfusion-sending-an-id-from-an-xml-object/183778 "2006-03-29T23:45:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [March 29, 2006, 11:45pm UTC](https://forum.kirupa.com/t/coldfusion-sending-an-id-from-an-xml-object/183778/1 "2006-03-29T23:45:49Z")

</div>

What is the correct way to pass variables to a cfm so it can use it to do queries, when using an XML object+sendAndLoad in flash…i want to pass it a simple mapID…

what should i parse in the senderXML?

something like senderXML.parseXML("\<mapID\>2\</mapID\>");

or should i use senderXML.parseXML(“mapID=2”);

or what?

and is there any reason why flash+xmlobject.sendAndLoad()+coldfusion wouldnt work?

please any (and i mean _any_) ideas would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [March 29, 2006, 11:54pm UTC](https://forum.kirupa.com/t/coldfusion-sending-an-id-from-an-xml-object/183778/2 "2006-03-29T23:54:40Z")

</div>

Well, I don’t know anything about this, but guessing by the name, it would seem

```auto
senderXML.parseXML("<mapID>2</mapID>");

```

would be much more valid than

```auto
senderXML.parseXML("mapID=2");

```

(that isn’t xml… so parseXML wouldn’t make sense there…)
