![]() |
| XML - Display the XML in a browser - Need ASAP |
|
dkurth
|
If you go to the following url:
http://www.thekurthzone.com/Smithsonian/wintercount.cfm?Action=GetWinterCountYear&WinterCountYearID=2323 I can display the XML using CFDUMP.... how can I display this XML not in this format but as tags???? I have tried combinations of what is below: <CFCONTENT TYPE="text/html" RESET="yes"><cfoutput>#ToString(doc)#</cfoutput> <!--- <cfset xmlStr = XMLParse( doc )> ---> <!---<?xml version="1.0" encoding="UTF-8"?> ---> <!--- <cfoutput>#ToString(doc)#</cfoutput> ---> <!--- ---> <!--- <cfcontent type="text/xml"><cfoutput>#ToString(doc)#</cfoutput> ---> What am I missing? |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Theres a problem with outputting XML with the ToString Function... google it, or better yet, look for it in the ToString function of macromedia's livedocs... it's documented in there. And there are documented workarounds.
|
||||||||||||
|
|
|||||||||||||
| Workarounds???? |
|
dkurth
|
Josh,
I have looked on google and the livedocs, but haven't seen any work arounds... do you know of any that you can point me too? |
||||||||||||
|
|
|||||||||||||
|
byron
Forum Admin
|
Looks like the value from the URL is a wddx packet with a XML string within it. Use CFWDDX to change the wddx to a cf variable, and use the cfcontent and output the xml string.
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
|||||||||||||
|
|
|||||||||||||
| Re: XML - Display the XML in a browser - Need ASAP |
|
chap2009
|
You can find the article Simple Way To Output XML to Browser which address your issue on MS Techno Blogging site. Hope thats what you are looking for...
Cheers...
|
||||||||||||||
|
|
|||||||||||||||
| XML - Display the XML in a browser - Need ASAP |
|
||
|


