Gavin,
We have a tag available on our website that will do exactly what you
requesting. http://www.siteobjects.com/index.cfm?fuseaction=showproducts
XMLParse is written in ColdFusion using MSXML 2.0 and will take any XML doc
as input and parse it into a complex CF structure. The tag is open source
so if you would like to learn exactly what it takes to read directly from
the XML DOM your free to hack it up. We do provide support at our forums
for general questions about XML and XMLParse.
Using XMLParse here is the code it would take to read the Last Sale Price of
ALLR (egads!!):
<cfhttp
url="http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&symbol=ALLR"
method="GET" resolveurl="true" >
<cf_xmlparse type="variable" xmldoc="#cfhttp.filecontent#" r_struct="sALLR">
Last Sale Price (ALLR) @
<cfoutput>#sALLR["NASDAQAMEX-DOT-COM"][2]["EQUITY-QUOTE"]["LAST-SALE-PRICE"]
.value#</cfoutput>
My advise would be to also download a object viewing tag from the tag
gallery such as cf_objectdump so you can get an HTML representation of the
structure that is returned from XMLParse. That will help you write the
references to the values contained in this returned structure (They can get
quite nasty).
Hope that gets you going in the right direction...
Happy Coding!
Brett Suwyn
mailto:[EMAIL PROTECTED]
> -----Original Message-----
> From: Gavin Myers [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 18, 2000 2:52 PM
> To: '[EMAIL PROTECTED]'
> Subject: [CF-Talk] XML and Cold Fusion
>
>
> Hey thanks everyone for the suggested xml books, i'll try and
> pick them up
> tonight
>
> Here's my problem:
>
> http://www.nasdaq.com
> allowes companies to take their information and embed it into
> their own web
> sites via xml
>
> for example:
> here is the information they have on the subject
> http://www.nasdaq-amex.com/help/custom_linkinfo.stm
>
> here is what the output looks like
> http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&symbol=MSFT
>
>
> What i want to do is take this information and put it into a
> cfm document so
> it'll be readable.
>
> Problem #1
> If i do
> <cfhttp
> url="http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&sy
> mbol=LROD"
> method="GET" resolveurl="true">
> </cfhttp>
> <cfoutput>
> #cfhttp.filecontent#
> </cfoutput>
>
> I get the following error
> The requested file is not ASCII text and can not be rendered
>
> This is not as big a deal as my next problems
>
> Problem #2
> Once i get the information what do i do with it?
> Can XML be written inside a CFM file or does it have to have the XML
> extension?
>
> Problem #3
> Do I have to write a local XSL file to read all of these tags
>
> Problem #4
> How does this DTD file work into this whole thing?
>
> From what I can gather, in the last 2 hours that i've studies
> xml :) it is a
> pretty basic language. It doesn't seem to really be a
> language, maybe i'm
> off my rocker and have no idea what i'm spouting (wich is
> pretty common).
> But to me, XML seems like a glorified CSS file, or maybe
> that's just the XSL
> side of it *shrug*
>
> any help would make you godlike
>
>
> Gavin
>
> --------------------------------------------------------------
> ----------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.