I'm not sure what you mean by " results are returned directly in the
browser in XML format", but I'll ignore that for now and assume you are
calling some webservice, or cfhttping to a URL.

Have the administrators of the "remote database" provided you with an
XSD or DTD which lets you know what the XML will look like?

As long as the format of the XML (what tags and attributes there are) is
predictable, it doesn't really matter whether or not you are using XML
that was created dynamically or read from a static file-- your code will
work the same way.

ColdFusion has some VERY handy ways to deal with XML, but it may help
you to think of ColdFusion's representation of an XML object as an array
of structs.

I don't know how you are receiving the XML, but for example, it it was
in a string variable called "my_xml_string_variable", all you need to do
is:

<cfset xml_doc = xmlparse(my_xml_string_variable)>
<cfdump var="#xml_doc#">

That should at least get you started.

~Brad

-----Original Message-----
From: LSD 4Me [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2008 1:03 PM
To: CF-Talk
Subject: Dynamic XML(DOM)

Hi

I am currenlty using a form to search for dates in a remote database.
The results are returned directly in the browser in XML format. I need
to setup a way to have that xml data returned dynamicaly to a page which
will then give me the ability to manipulate the data returned (either
display in html form or insert into a local db)

We are on CF8 and im like a deer in headlights when it comes to xml.
does anybody know a good starting point? Ive researched plenty but ALL
the examples require an xml file to already exist on not be generated
dynamically.

Any help is appreciated! THanks!! 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308746
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to