If you aren't running coldfusion mx 7, you'll need to replace
<cfset xml = XMLParse("http://area208.i
with
<cffile action="read" file="server_path_to_xml" variable="xmlbody" />
<cfset xml = XMLParse(xmlbody) />
The little hyphens you saw just represented the browser's method for displaying an xml file. If you look at the view source, you'll see what coldfusion will be grabbing, which in this case was some well-formatted xml. :)
Main Topics
Browse All Topics





by: mkishlinePosted on 2006-01-19 at 07:44:35ID: 15739640
Cast your fears aside. The xml that you are creating is fine, you may have just been going through the xml in a way that coldfusion didn't handle well. Using the url you supplied, you can do something like this (I'm not sure how you're trying to design the form, but you can use the coldfusion variables in my "value" attributes however you like).
deasdesign inc.com/ti cker/ticke r.xml") />
c") /> ren[1].xml text#" /> use image <input type="text" name="img#i#" value="#topics[i].xmlchild ren[2].xml text#" /><br />
<cfset xml = XMLParse("http://area208.i
<cfset topics = XMLSearch(xml,"ticker/topi
<form action="somepage" method="post">
<cfoutput>
<cfloop index="i" from="1" to="#ArrayLen(topics)#">
For topic<input type="text" name="topic#i#" value="#topics[i].xmlchild
</cfloop>
</cfoutput>
</form>