I have a simple xml file (which I create dynamically on the server using ColdFusion's CFFILE write function) that I would like to parse, and then populate form fields with. So far, I've tried using things like xmlParse(), cffile, and cfhttp, and so far, all I get is the meaningless jibberish "coldfusion.xml.XmlNodeLis
t@cb5398" (or some variation thereof) when trying to cfoutput the parsed data.
This is my XML file:
http://area208.ideasdesigninc.com/ticker/ticker.xmlQuestion: Does this xml file look malformed? What are those little hyphen looking things? Spaces? If so, could those be interfering with the parsing somehow and resulting in the "coldfusion.xml.XmlNodeLis
t@cb5398" jibberish? Do those need to be TABs instead of spaces? And does the indentation of the different nodes need to be specific based on the child/parent relationships?
Assuming that I am going about this all wrong, .. what would be the proper way to do the following:
1) create the xml file on the server using coldfusion
2) parse the xml file on the server using coldfusion
3) populate a web form with the parsed data that was retrieved from the xml file
The specific XML file structure that I need to adhere to is as follows. Thanks!
- Yvan
--------------------------
----------
----------
----------
----------
----------
--
SNIP
--------------------------
----------
----------
----------
----------
----------
--
<?xml version="1.0"?>
<ticker>
<topic>
<text><![CDATA[<b>HTML text one</b>]]></text>
<image>icon1.gif</image>
</topic>
<topic>
<text><![CDATA[<b>HTML text two</b>]]></text>
<image>icon2.gif</image>
</topic>
<topic>
<text><![CDATA[<b>HTML text three</b>]]></text>
<image>icon3.gif</image>
</topic>
<topic>
<text><![CDATA[<b>HTML text four</b>]]></text>
<image>icon4.gif</image>
</topic>
<topic>
<text><![CDATA[<b>HTML text five</b>]]></text>
<image>icon5.gif</image>
</topic>
</ticker>
--------------------------
----------
----------
----------
----------
----------
--
SNIP
--------------------------
----------
----------
----------
----------
----------
--
Start Free Trial