Reply to topic
XML - Display the XML in a browser - Need ASAP
dkurth


Joined: 27 Aug 2004
Posts: 2
Reply with quote
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

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
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


Joined: 27 Aug 2004
Posts: 2
Reply with quote
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

Joined: 07 Mar 2004
Posts: 160
Location: Newark, DE, USA
Reply with quote
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

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
Shocked ... and there be the answer *bows to CFGod* Wink
Re: XML - Display the XML in a browser - Need ASAP
chap2009


Joined: 10 Oct 2009
Posts: 1
Reply with quote
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...

dkurth wrote:
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?
XML - Display the XML in a browser - Need ASAP
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic