Question
XML Parse
I have a script that calls an eml page via cfhttp and would like to simply display the results. This xml structure does work
<macromedia_resources xmlns:macromedia_resources="http://www.macromedia.com/devnet/resources/macromedia_resources.dtd">
<title>The Macromedia XML Resource Feed will be discontinued Please switch to the RDF feed ASAP</title>
<author>Macromedia</author>
<product name="Dreamweaver" />
</resource>
<title>Using Image Editing Tools in Dreamweaver MX 2004</title>
<author>Patti Schulze</author>
<product name="Dreamweaver" />
<product name="Fireworks" />
</resource>
.
.
This one does not with the same script.
.
.
<bill type="s" number="2" title="S. 2: Middle Class Opportunity Act of 2009" official-title="A bill to improve the lives of middle class families and provide them with greater opportunity to achieve the American dream." last-action="2009-01-07" status="calendar" />
<bill type="s" number="3" title="S. 3: Homeowner Protection and Wall Street Accountability Act of 2009" official-title="A bill to protect homeowners and consumers by reducing foreclosures, ensuring the availability of credit for homeowners, businesses, and consumers, and reforming the financial regulatory system, and for other purposes." last-action="2009-01-07" status="calendar" />
.
.
is the attributes causing an issue?
.
.
The script looks like this:
<cfhttp url="examplewebpage">
<cfset myxmldoc = XmlParse(cfhttp.fileContent)>
</head>
<cfset myxmldoc = XmlParse(cfhttp.fileContent)>
</head>
<body>
<cfoutput><font color="FFFFFF">#myxmldoc#</font></cfoutput>
<cfoutput><font color="FFFFFF">#myxmldoc#</font></cfoutput>